regmap: using module facilities requires module.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 15 Aug 2011 23:36:06 +0000 (09:36 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Aug 2011 02:28:17 +0000 (19:28 -0700)
Commit b33f9cbd67ba ("regmap: Specify a module license") added a
MODULES_LICENSE to this file without adding an include of module.h.

module.h should have been included anyway, since this file has
EXPORT_SYMBOLs as well.  With the pending module.h split up, this would
probably have caused build problems.

Cc: Stephen Warren <swarren@nvidia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/regmap/regmap-spi.c

index 2bbc65999a5f80b6ea70f2590be6a7cd5e9cd8cf..f8396945d6ed6339741ab0bd6db8dca9a985a587 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/regmap.h>
 #include <linux/spi/spi.h>
 #include <linux/init.h>
+#include <linux/module.h>
 
 static int regmap_spi_write(struct device *dev, const void *data, size_t count)
 {