浏览代码

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>
Uwe Kleine-König 15 年之前
父节点
当前提交
b75dcabd6c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/mod/modpost.c

+ 1 - 1
scripts/mod/modpost.c

@@ -961,7 +961,7 @@ static int section_mismatch(const char *fromsec, const char *tosec)
  * Pattern 2:
  * Pattern 2:
  *   Many drivers utilise a *driver container with references to
  *   Many drivers utilise a *driver container with references to
  *   add, remove, probe functions etc.
  *   add, remove, probe functions etc.
- *   These functions may often be marked __init and we do not want to
+ *   These functions may often be marked __devinit and we do not want to
  *   warn here.
  *   warn here.
  *   the pattern is identified by:
  *   the pattern is identified by:
  *   tosec   = init or exit section
  *   tosec   = init or exit section