aboutsummaryrefslogtreecommitdiffstats
path: root/samples/kobject
diff options
context:
space:
mode:
Diffstat (limited to 'samples/kobject')
-rw-r--r--samples/kobject/kobject-example.c4
-rw-r--r--samples/kobject/kset-example.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/samples/kobject/kobject-example.c b/samples/kobject/kobject-example.c
index 08d0d3ff3263..8d9b55a12023 100644
--- a/samples/kobject/kobject-example.c
+++ b/samples/kobject/kobject-example.c
@@ -101,7 +101,7 @@ static struct attribute_group attr_group = {
101 101
102static struct kobject *example_kobj; 102static struct kobject *example_kobj;
103 103
104static int example_init(void) 104static int __init example_init(void)
105{ 105{
106 int retval; 106 int retval;
107 107
@@ -126,7 +126,7 @@ static int example_init(void)
126 return retval; 126 return retval;
127} 127}
128 128
129static void example_exit(void) 129static void __exit example_exit(void)
130{ 130{
131 kobject_put(example_kobj); 131 kobject_put(example_kobj);
132} 132}
diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c
index 7395c0bbae18..45b7d56fb541 100644
--- a/samples/kobject/kset-example.c
+++ b/samples/kobject/kset-example.c
@@ -229,7 +229,7 @@ static void destroy_foo_obj(struct foo_obj *foo)
229 kobject_put(&foo->kobj); 229 kobject_put(&foo->kobj);
230} 230}
231 231
232static int example_init(void) 232static int __init example_init(void)
233{ 233{
234 /* 234 /*
235 * Create a kset with the name of "kset_example", 235 * Create a kset with the name of "kset_example",
@@ -264,7 +264,7 @@ foo_error:
264 return -EINVAL; 264 return -EINVAL;
265} 265}
266 266
267static void example_exit(void) 267static void __exit example_exit(void)
268{ 268{
269 destroy_foo_obj(baz_obj); 269 destroy_foo_obj(baz_obj);
270 destroy_foo_obj(bar_obj); 270 destroy_foo_obj(bar_obj);