Skip to content

Commit b75dcab

Browse files
author
Uwe Kleine-König
committed
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 <[email protected]>
1 parent 499a267 commit b75dcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mod/modpost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ static int section_mismatch(const char *fromsec, const char *tosec)
961961
* Pattern 2:
962962
* Many drivers utilise a *driver container with references to
963963
* 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
965965
* warn here.
966966
* the pattern is identified by:
967967
* tosec = init or exit section

0 commit comments

Comments
 (0)