mtd: spi-nor: include mtd.h header for struct mtd_info definition
authorRafał Miłecki <zajec5@gmail.com>
Thu, 26 Nov 2015 08:05:04 +0000 (09:05 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 30 Nov 2015 20:02:29 +0000 (12:02 -0800)
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>
include/linux/mtd/spi-nor.h

index 7bed97471e5376a296fb57c26c106f22d355ad26..fac3f6f53981a303b50f664897bb6adbbbf7a55d 100644 (file)
@@ -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