diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-01-29 05:40:38 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-01-29 15:56:55 -0500 |
commit | b75dcabd6c6c71d7cea64f78b06d18d9cda0ddd1 (patch) | |
tree | 0169ca0b88724ed68ce64a67db2ae3c5cec79297 /scripts/mod | |
parent | 499a2673713c85734a54c37dd90b4b729de399c4 (diff) |
modpost: members of *driver structs should not point to __init functions
Either the functions referred to in a driver struct should live in
.devinit or the driver should be registered using platform_driver_probe
(or equivalent for different driver types) with ->probe being NULL.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 20923613467c..713b62eed875 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -961,7 +961,7 @@ static int section_mismatch(const char *fromsec, const char *tosec) | |||
961 | * Pattern 2: | 961 | * Pattern 2: |
962 | * Many drivers utilise a *driver container with references to | 962 | * Many drivers utilise a *driver container with references to |
963 | * add, remove, probe functions etc. | 963 | * add, remove, probe functions etc. |
964 | * These functions may often be marked __init and we do not want to | 964 | * These functions may often be marked __devinit and we do not want to |
965 | * warn here. | 965 | * warn here. |
966 | * the pattern is identified by: | 966 | * the pattern is identified by: |
967 | * tosec = init or exit section | 967 | * tosec = init or exit section |