[PATCH 2/3] mtd: nand_denali: don't include arch header

Lucas Stach l.stach at pengutronix.de
Wed Oct 14 01:53:26 PDT 2015


It causes build failures on other arches than socfpga and the driver
doesn't use anything provided by this header.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 drivers/mtd/nand/nand_denali.c    | 1 -
 drivers/mtd/nand/nand_denali_dt.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_denali.c b/drivers/mtd/nand/nand_denali.c
index d2e51e2568dc..bf9a05d85264 100644
--- a/drivers/mtd/nand/nand_denali.c
+++ b/drivers/mtd/nand/nand_denali.c
@@ -24,7 +24,6 @@
 #include <init.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
-#include <mach/generic.h>
 #include <io.h>
 #include <of_mtd.h>
 #include <errno.h>
diff --git a/drivers/mtd/nand/nand_denali_dt.c b/drivers/mtd/nand/nand_denali_dt.c
index 09eb110c870a..6a3aee1415e9 100644
--- a/drivers/mtd/nand/nand_denali_dt.c
+++ b/drivers/mtd/nand/nand_denali_dt.c
@@ -19,7 +19,6 @@
 #include <init.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
-#include <mach/generic.h>
 #include <io.h>
 #include <of_mtd.h>
 #include <errno.h>
-- 
2.6.1




More information about the barebox mailing list