diff options
author | Qinghuang Feng <qhfeng.kernel@gmail.com> | 2009-01-06 14:40:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 15:59:12 -0800 |
commit | 7ec7fb394298c212c30e063c57e0aa895efe9439 (patch) | |
tree | f2aa6cf2ff5d66595d5acb7d985bb157f67c6b29 /samples/firmware_class | |
parent | 9fe06081ef145d6582c39e18203b5fffe6f3abc2 (diff) | |
download | linux-rpi3-7ec7fb394298c212c30e063c57e0aa895efe9439.tar.gz linux-rpi3-7ec7fb394298c212c30e063c57e0aa895efe9439.tar.bz2 linux-rpi3-7ec7fb394298c212c30e063c57e0aa895efe9439.zip |
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) " request_firmware_nowait failed\n"); } -static int sample_init(void) +static int __init sample_init(void) { device_initialize(&ghost_device); /* since there is no real hardware insertion I just call the |