From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 4 Dec 2019 21:53:07 -0500 Subject: [U-Boot] [PATCH v6 1/3] cmd: nand/sf: isolate legacy code In-Reply-To: <20191025173931.10693-2-miquel.raynal@bootlin.com> References: <20191025173931.10693-1-miquel.raynal@bootlin.com> <20191025173931.10693-2-miquel.raynal@bootlin.com> Message-ID: <20191205025307.GG9549@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 25, 2019 at 07:39:29PM +0200, Miquel Raynal wrote: > The 'sf' command is not supposed to rely on the MTD stack, but both > 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite > their location, these functions do not depend at all on the MTD > stack. > > This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is > selected, which is inconsistent with the current situation. Solve this > by moving these three functions (which are only used by the above two > commands) out of mtd_uboot.c and put them in a C file only compiled > with cmd/sf.c and cmd/nand.c. > > Signed-off-by: Miquel Raynal Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: