diff options
author | Qinghuang Feng <qhfeng.kernel@gmail.com> | 2009-01-06 17:40:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:12 -0500 |
commit | 7ec7fb394298c212c30e063c57e0aa895efe9439 (patch) | |
tree | f2aa6cf2ff5d66595d5acb7d985bb157f67c6b29 /samples/firmware_class | |
parent | 9fe06081ef145d6582c39e18203b5fffe6f3abc2 (diff) |
samples: mark {static|__init|__exit} for {init|exit} functions
None of these (init|exit) functions is called from other functions which
is outside the kernel module mechanism or kernel itself, so mark them as
{static|__init|__exit}.
Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/firmware_class')
-rw-r--r-- | samples/firmware_class/firmware_sample_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/firmware_class/firmware_sample_driver.c b/samples/firmware_class/firmware_sample_driver.c index 11114f389c49..219a29896603 100644 --- a/samples/firmware_class/firmware_sample_driver.c +++ b/samples/firmware_class/firmware_sample_driver.c | |||
@@ -100,7 +100,7 @@ static void sample_probe_async(void) | |||
100 | " request_firmware_nowait failed\n"); | 100 | " request_firmware_nowait failed\n"); |
101 | } | 101 | } |
102 | 102 | ||
103 | static int sample_init(void) | 103 | static int __init sample_init(void) |
104 | { | 104 | { |
105 | device_initialize(&ghost_device); | 105 | device_initialize(&ghost_device); |
106 | /* since there is no real hardware insertion I just call the | 106 | /* since there is no real hardware insertion I just call the |