Skip to contentSkip to conversation

mfd: altera-a10sr: include linux/module.h

PATCH Applied Arnd Bergmann 2 participants 2 messages Oct 13, 2021 – Oct 21, 2021 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: altera-a10sr: include linux/module.h

From: Arnd Bergmann <[email protected]>

Without the header, the MODULE_DEVICE_TABLE() declaration fails:

drivers/mfd/altera-a10sr.c:153:1: error: data definition has no type or storage class [-Werror]
153 | MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match);

---
 drivers/mfd/altera-a10sr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/altera-a10sr.c +1 -0
index 6d04fdd09ca2..34ef526f4aee 100644
@@ -14,6 +14,7 @@
 #include <linux/mfd/altera-a10sr.h>
 #include <linux/mfd/core.h>
 #include <linux/init.h>
+#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/spi/spi.h>
 
Signature · 1 line
2.29.2
Applied
#1 lore raw
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Without the header, the MODULE_DEVICE_TABLE() declaration fails:

drivers/mfd/altera-a10sr.c:153:1: error: data definition has no type or storage class [-Werror]
153 | MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match);

---
 drivers/mfd/altera-a10sr.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog