diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-11 11:36:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-11 13:53:57 -0500 |
commit | d9f523723bc794e1851024958a6add303ba67b6c (patch) | |
tree | 1571d209ccdc18be42a4da21e134f7962b689849 /drivers/net/ethernet/socionext | |
parent | 532b5aa0b41ae908842166be4d17fffa53590bf0 (diff) |
net: socionext: include linux/io.h to fix build
I ran into a randconfig build failure:
drivers/net/ethernet/socionext/netsec.c: In function 'netsec_probe':
drivers/net/ethernet/socionext/netsec.c:1583:17: error: implicit declaration of function 'devm_ioremap'; did you mean 'ioremap'? [-Werror=implicit-function-declaration]
Including linux/io.h directly fixes this.
Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext')
-rw-r--r-- | drivers/net/ethernet/socionext/netsec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index a8edcf387bba..af47147dd656 100644 --- a/drivers/net/ethernet/socionext/netsec.c +++ b/drivers/net/ethernet/socionext/netsec.c @@ -8,6 +8,7 @@ #include <linux/of_mdio.h> #include <linux/etherdevice.h> #include <linux/interrupt.h> +#include <linux/io.h> #include <net/tcp.h> #include <net/ip6_checksum.h> |