bcm53xx: backport Broadcom's iProc QSPI driver
[lede.git] / target / linux / bcm53xx / patches-4.4 / 083-0004-spi-bcm-qspi-don-t-include-linux-mtd-cfi.h.patch
1 From c0a75d072a501effd66d3392ada8d3f4283b87ef Mon Sep 17 00:00:00 2001
2 From: Arnd Bergmann <arnd@arndb.de>
3 Date: Thu, 15 Sep 2016 17:40:15 +0200
4 Subject: [PATCH] spi: bcm-qspi: don't include linux/mtd/cfi.h
5
6 The header isn't actually needed here, but including it leads
7 to a build warning when CONFIG_MTD is disabled:
8
9 include/linux/mtd/cfi.h:76:2: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp]
10
11 Fixes: fa236a7ef240 (spi: bcm-qspi: Add Broadcom MSPI driver)
12 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
13 Signed-off-by: Mark Brown <broonie@kernel.org>
14 ---
15  drivers/spi/spi-bcm-qspi.c | 1 -
16  1 file changed, 1 deletion(-)
17
18 --- a/drivers/spi/spi-bcm-qspi.c
19 +++ b/drivers/spi/spi-bcm-qspi.c
20 @@ -25,7 +25,6 @@
21  #include <linux/ioport.h>
22  #include <linux/kernel.h>
23  #include <linux/module.h>
24 -#include <linux/mtd/cfi.h>
25  #include <linux/mtd/spi-nor.h>
26  #include <linux/of.h>
27  #include <linux/of_irq.h>