]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/params.c
Merge branch 'linus'
[linux-2.6-omap-h63xx.git] / kernel / params.c
index c76ad25e6a214df9d534f5142da9f2a1a1729b52..a29150582310e05e5bedd83f5e216610c9e69495 100644 (file)
@@ -638,13 +638,8 @@ static ssize_t module_attr_show(struct kobject *kobj,
        if (!attribute->show)
                return -EIO;
 
-       if (!try_module_get(mk->mod))
-               return -ENODEV;
-
        ret = attribute->show(attribute, mk->mod, buf);
 
-       module_put(mk->mod);
-
        return ret;
 }
 
@@ -662,13 +657,8 @@ static ssize_t module_attr_store(struct kobject *kobj,
        if (!attribute->store)
                return -EIO;
 
-       if (!try_module_get(mk->mod))
-               return -ENODEV;
-
        ret = attribute->store(attribute, mk->mod, buf, len);
 
-       module_put(mk->mod);
-
        return ret;
 }