]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/module.c
device create: misc: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / kernel / module.c
index 08864d257eb0ece2239cd86008973826bc49abd0..d5fcd24e5aff89c907fed9eee605647a48759db4 100644 (file)
@@ -1173,7 +1173,7 @@ static void free_notes_attrs(struct module_notes_attrs *notes_attrs,
                while (i-- > 0)
                        sysfs_remove_bin_file(notes_attrs->dir,
                                              &notes_attrs->attrs[i]);
-               kobject_del(notes_attrs->dir);
+               kobject_put(notes_attrs->dir);
        }
        kfree(notes_attrs);
 }
@@ -1799,7 +1799,7 @@ static void *module_alloc_update_bounds(unsigned long size)
 
 /* Allocate and load the module: note that size of section 0 is always
    zero, and we rely on this for optional sections. */
-static struct module *load_module(void __user *umod,
+static noinline struct module *load_module(void __user *umod,
                                  unsigned long len,
                                  const char __user *uargs)
 {