Skip to contentSkip to conversation

sh: mach-highlander/psw.c is tristate and should use module.h

PATCH New Paul Gortmaker 1 participant 1 message Jan 24, 2014 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: mach-highlander/psw.c 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.

---

[patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/sh/boards/mach-highlander/psw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/boards/mach-highlander/psw.c +1 -1
index 522786318d36..40e2b585d488 100644
@@ -10,7 +10,7 @@
  * for more details.
  */
 #include <linux/io.h>
-#include <linux/init.h>
+#include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <mach/highlander.h>
Signature · 1 line
1.8.5.2