1 From 72fc448c4c970bdbba604ab340f16080b4f3bb17 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 26 Nov 2015 08:52:09 +0100
4 Subject: [PATCH] mtd: spi-nor: include mtd.h header for struct mtd_info
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 So far struct spi_nor was using just a pointer to struct mtd_info so it
11 wasn't needed to have it fully defined there. After recent change we
12 embed whole struct so we need to include a proper header.
14 Fixes: 1976367173a4 ("mtd: spi-nor: embed struct mtd_info within struct spi_nor")
15 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
17 include/linux/mtd/spi-nor.h | 3 +--
18 1 file changed, 1 insertion(+), 2 deletions(-)
20 --- a/include/linux/mtd/spi-nor.h
21 +++ b/include/linux/mtd/spi-nor.h
24 #include <linux/bitops.h>
25 #include <linux/mtd/cfi.h>
26 +#include <linux/mtd/mtd.h>
30 @@ -117,8 +118,6 @@ enum spi_nor_option_flags {
31 SNOR_F_USE_FSR = BIT(0),
37 * struct spi_nor - Structure for defining a the SPI NOR layer
38 * @mtd: point to a mtd_info structure