Commit 2c81de77 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Brian Norris

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: 19763671 ("mtd: spi-nor: embed struct mtd_info within struct spi_nor")
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 3ce351b5
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/mtd/cfi.h> #include <linux/mtd/cfi.h>
#include <linux/mtd/mtd.h>
/* /*
* Manufacturer IDs * Manufacturer IDs
...@@ -117,8 +118,6 @@ enum spi_nor_option_flags { ...@@ -117,8 +118,6 @@ enum spi_nor_option_flags {
SNOR_F_USE_FSR = BIT(0), SNOR_F_USE_FSR = BIT(0),
}; };
struct mtd_info;
/** /**
* struct spi_nor - Structure for defining a the SPI NOR layer * struct spi_nor - Structure for defining a the SPI NOR layer
* @mtd: point to a mtd_info structure * @mtd: point to a mtd_info structure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment