mfd: altera-a10sr: include linux/module.h
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);
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/mfd/altera-a10sr.c | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/altera-a10sr.c +1 -0
@@ -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
Lee Jones
AppliedQuoted 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);Signed-off-by Arnd Bergmann <[email protected]>--- 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