mtd: spi-nor: include mtd.h header for struct mtd_info definition

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 12 15:59:10 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2c81de771f38e54324ede3f24118f4852570b384
Commit:     2c81de771f38e54324ede3f24118f4852570b384
Parent:     3ce351b5354a206e92ccd2d7f30df9c8b7ae5ed1
Author:     Rafał Miłecki <zajec5 at gmail.com>
AuthorDate: Thu Nov 26 09:05:04 2015 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Nov 30 12:02:29 2015 -0800

    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 at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 include/linux/mtd/spi-nor.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h
index 7bed974..fac3f6f 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



More information about the linux-mtd-cvs mailing list