summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-10-13 16:43:55 +0200
committerLee Jones <lee.jones@linaro.org>2021-11-05 15:40:26 +0100
commit37f127cf8112461cd9d8ec38551bc4af87cb27f5 (patch)
tree1e9abd820f44fca9cbdc3bfd2d58e3c0e4bd4a5a
parentmfd: tps65912: Make tps65912_device_exit() return void (diff)
downloadlinux-37f127cf8112461cd9d8ec38551bc4af87cb27f5.tar.xz
linux-37f127cf8112461cd9d8ec38551bc4af87cb27f5.zip
mfd: altera-a10sr: Include linux/module.h
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 <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20211013144402.2292128-1-arnd@kernel.org
-rw-r--r--drivers/mfd/altera-a10sr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/altera-a10sr.c b/drivers/mfd/altera-a10sr.c
index 6d04fdd09ca2..34ef526f4aee 100644
--- a/drivers/mfd/altera-a10sr.c
+++ b/drivers/mfd/altera-a10sr.c
@@ -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>