Skip to content

Commit 37f127c

Browse files
arndbLee Jones
authored andcommitted
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 <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ec14d90 commit 37f127c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/altera-a10sr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/mfd/altera-a10sr.h>
1515
#include <linux/mfd/core.h>
1616
#include <linux/init.h>
17+
#include <linux/module.h>
1718
#include <linux/of.h>
1819
#include <linux/spi/spi.h>
1920

0 commit comments

Comments
 (0)