浏览代码

i2c: acorn: is tristate and should use module.h

This file is controlled by a tristate Kconfig option, and hence
needs to include module.h so that it can get module_init() once
we relocate it from init.h into module.h in the future.

Note that module_exit() appears to be missing from the driver, so
it is questionable whether it would actually work for a removal
and reload cycle if it was configured for a modular build.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Paul Gortmaker 11 年之前
父节点
当前提交
667693301a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/busses/i2c-acorn.c

+ 1 - 1
drivers/i2c/busses/i2c-acorn.c

@@ -12,7 +12,7 @@
  *  On Acorn machines, the following i2c devices are on the bus:
  *  On Acorn machines, the following i2c devices are on the bus:
  *	- PCF8583 real time clock & static RAM
  *	- PCF8583 real time clock & static RAM
  */
  */
-#include <linux/init.h>
+#include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
 #include <linux/i2c-algo-bit.h>
 #include <linux/io.h>
 #include <linux/io.h>