From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 28 Aug 2012 11:11:39 +0200 From: Andrew Lunn To: Thomas Petazzoni Subject: Re: [PATCH] mtd: orion_nand: remove include Message-ID: <20120828091139.GC31704@lunn.ch> References: <20120816183708.GT22226@titan.lakedaemon.net> <1346110528-30858-1-git-send-email-thomas.petazzoni@free-electrons.com> <1346110528-30858-2-git-send-email-thomas.petazzoni@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1346110528-30858-2-git-send-email-thomas.petazzoni@free-electrons.com> Cc: Lior Amsalem , Andrew Lunn , Ike Pan , Albert Stone , Nadav Haklai , linux-mtd@lists.infradead.org, Ian Molton , Yehuda Yitschak , Jani Monoses , Tawfik Bayouk , Dan Frazier , Eran Ben-Avi , Li Li , Leif Lindholm , Sebastian Hesselbarth , Jason Cooper , Arnd Bergmann , Jon Masters , Ben Dooks , Gregory Clement , linux-arm-kernel@lists.infradead.org, Chris Van Hoof , Nicolas Pitre , Artem Bityutskiy , Maen Suleiman , Shadi Ammouri , Olof Johansson , Eric Miao , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Aug 28, 2012 at 01:35:28AM +0200, Thomas Petazzoni wrote: > Commit c085d965fb63ac3b4cc7379d45588c0b39e2bdb0 made the ARCH_MVEBU > platform select PLAT_ORION, which means that now all Orion drivers can > be enabled on ARCH_MVEBU. This works fine for most drivers, except for > orion_nand, because it includes , but mach-mvebu does > not have a mach/hardware.h header (it is considered as a deprecated > practice). > > It turns out that the include in orion_nand is not > necessary: the driver builds perfectly fine without it, so we simply > get rid of it. > > Signed-off-by: Thomas Petazzoni > Cc: David Woodhouse > Cc: linux-mtd@lists.infradead.org > Cc: Artem Bityutskiy > --- > drivers/mtd/nand/orion_nand.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c > index fc5a868..9ee436d 100644 > --- a/drivers/mtd/nand/orion_nand.c > +++ b/drivers/mtd/nand/orion_nand.c > @@ -21,7 +21,6 @@ > #include > #include > #include > -#include > #include > > static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) > -- > 1.7.9.5 > Hi Thomas I compiled tested on Dove, Kirkwood, Orion5x and mv78xx0. Tested-by: Andrew Lunn One other driver you might want to look at is: drivers/watchdog/orion_wdt.c It uses Andrew