diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-11-26 09:05:04 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-30 12:02:29 -0800 |
commit | 2c81de771f38e54324ede3f24118f4852570b384 (patch) | |
tree | 250020e0ee19c5c1a1e72dc839650530333cbff7 /include/linux/mtd | |
parent | 3ce351b5354a206e92ccd2d7f30df9c8b7ae5ed1 (diff) | |
download | linux-2c81de771f38e54324ede3f24118f4852570b384.tar.gz linux-2c81de771f38e54324ede3f24118f4852570b384.tar.bz2 linux-2c81de771f38e54324ede3f24118f4852570b384.zip |
mtd: spi-nor: include mtd.h header for struct mtd_info definition
So far struct spi_nor was using just a pointer to struct mtd_info so it
wasn't needed to have it fully defined there. After recent change we
embed whole struct so we need to include a proper header.
Fixes: 1976367173a4 ("mtd: spi-nor: embed struct mtd_info within struct spi_nor")
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/spi-nor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 7bed97471e53..fac3f6f53981 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -12,6 +12,7 @@ #include <linux/bitops.h> #include <linux/mtd/cfi.h> +#include <linux/mtd/mtd.h> /* * Manufacturer IDs @@ -117,8 +118,6 @@ enum spi_nor_option_flags { SNOR_F_USE_FSR = BIT(0), }; -struct mtd_info; - /** * struct spi_nor - Structure for defining a the SPI NOR layer * @mtd: point to a mtd_info structure |