]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - samples/kobject/kset-example.c
irq: optimize init_kstat_irqs/init_copy_kstat_irqs
[linux-2.6.git] / samples / kobject / kset-example.c
index 7395c0bbae18426e119d47bb67e59da293228952..45b7d56fb54185d2008814ec6f4dfff4b42a2e11 100644 (file)
@@ -229,7 +229,7 @@ static void destroy_foo_obj(struct foo_obj *foo)
        kobject_put(&foo->kobj);
 }
 
-static int example_init(void)
+static int __init example_init(void)
 {
        /*
         * Create a kset with the name of "kset_example",
@@ -264,7 +264,7 @@ foo_error:
        return -EINVAL;
 }
 
-static void example_exit(void)
+static void __exit example_exit(void)
 {
        destroy_foo_obj(baz_obj);
        destroy_foo_obj(bar_obj);