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
6 The header isn't actually needed here, but including it leads
7 to a build warning when CONFIG_MTD is disabled:
9 include/linux/mtd/cfi.h:76:2: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp]
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>
15 drivers/spi/spi-bcm-qspi.c | 1 -
16 1 file changed, 1 deletion(-)
18 --- a/drivers/spi/spi-bcm-qspi.c
19 +++ b/drivers/spi/spi-bcm-qspi.c
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>
27 #include <linux/of_irq.h>