diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-01 08:54:21 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 16:04:53 -0400 |
commit | 24d990e237d1822fb108ed9be41d1542af001185 (patch) | |
tree | c67098f43aafda3c647e153bdb782cfe9cb93fe8 /drivers/mtd | |
parent | 03a97550941d17c7d5b621afde5945bbc0da6546 (diff) |
mtd: nand: remove unneeded of_mtd.h inclusions
Some drivers are including linux/of_mtd.h even if they don't use any of
the of_get_nand_xxx() helpers.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Harvey Hunt <harvey.hunt@imgtec.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/jz4780_nand.c | 1 | ||||
-rw-r--r-- | drivers/mtd/nand/lpc32xx_mlc.c | 1 | ||||
-rw-r--r-- | drivers/mtd/nand/qcom_nandc.c | 1 | ||||
-rw-r--r-- | drivers/mtd/nand/sunxi_nand.c | 1 | ||||
-rw-r--r-- | drivers/mtd/nand/vf610_nfc.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/nand/jz4780_nand.c b/drivers/mtd/nand/jz4780_nand.c index e1c016c9d32d..23a1999ae839 100644 --- a/drivers/mtd/nand/jz4780_nand.c +++ b/drivers/mtd/nand/jz4780_nand.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/of.h> | 17 | #include <linux/of.h> |
18 | #include <linux/of_address.h> | 18 | #include <linux/of_address.h> |
19 | #include <linux/gpio/consumer.h> | 19 | #include <linux/gpio/consumer.h> |
20 | #include <linux/of_mtd.h> | ||
21 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
22 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
23 | #include <linux/mtd/mtd.h> | 22 | #include <linux/mtd/mtd.h> |
diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c index d8c3e7afcc0b..8e439787b04e 100644 --- a/drivers/mtd/nand/lpc32xx_mlc.c +++ b/drivers/mtd/nand/lpc32xx_mlc.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/completion.h> | 35 | #include <linux/completion.h> |
36 | #include <linux/interrupt.h> | 36 | #include <linux/interrupt.h> |
37 | #include <linux/of.h> | 37 | #include <linux/of.h> |
38 | #include <linux/of_mtd.h> | ||
39 | #include <linux/of_gpio.h> | 38 | #include <linux/of_gpio.h> |
40 | #include <linux/mtd/lpc32xx_mlc.h> | 39 | #include <linux/mtd/lpc32xx_mlc.h> |
41 | #include <linux/io.h> | 40 | #include <linux/io.h> |
diff --git a/drivers/mtd/nand/qcom_nandc.c b/drivers/mtd/nand/qcom_nandc.c index f550a57e6eea..f3de983475db 100644 --- a/drivers/mtd/nand/qcom_nandc.c +++ b/drivers/mtd/nand/qcom_nandc.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/mtd/partitions.h> | 21 | #include <linux/mtd/partitions.h> |
22 | #include <linux/of.h> | 22 | #include <linux/of.h> |
23 | #include <linux/of_device.h> | 23 | #include <linux/of_device.h> |
24 | #include <linux/of_mtd.h> | ||
25 | #include <linux/delay.h> | 24 | #include <linux/delay.h> |
26 | 25 | ||
27 | /* NANDc reg offsets */ | 26 | /* NANDc reg offsets */ |
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index 1c03eee44f3d..3a97093662ea 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/of.h> | 30 | #include <linux/of.h> |
31 | #include <linux/of_device.h> | 31 | #include <linux/of_device.h> |
32 | #include <linux/of_gpio.h> | 32 | #include <linux/of_gpio.h> |
33 | #include <linux/of_mtd.h> | ||
34 | #include <linux/mtd/mtd.h> | 33 | #include <linux/mtd/mtd.h> |
35 | #include <linux/mtd/nand.h> | 34 | #include <linux/mtd/nand.h> |
36 | #include <linux/mtd/partitions.h> | 35 | #include <linux/mtd/partitions.h> |
diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c index 293feb19b0b1..a7f2756c49ee 100644 --- a/drivers/mtd/nand/vf610_nfc.c +++ b/drivers/mtd/nand/vf610_nfc.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/mtd/mtd.h> | 33 | #include <linux/mtd/mtd.h> |
34 | #include <linux/mtd/nand.h> | 34 | #include <linux/mtd/nand.h> |
35 | #include <linux/mtd/partitions.h> | 35 | #include <linux/mtd/partitions.h> |
36 | #include <linux/of_mtd.h> | ||
37 | #include <linux/of_device.h> | 36 | #include <linux/of_device.h> |
38 | #include <linux/pinctrl/consumer.h> | 37 | #include <linux/pinctrl/consumer.h> |
39 | #include <linux/platform_device.h> | 38 | #include <linux/platform_device.h> |