From: Tom Rini Date: Wed, 18 Nov 2015 17:33:53 -0500 Subject: [U-Boot] [U-Boot, V4, 03/13] spl: mmc: refactor device location code to its own function In-Reply-To: <1446995514-26357-4-git-send-email-nikita@compulab.co.il> References: <1446995514-26357-4-git-send-email-nikita@compulab.co.il> Message-ID: <20151118223353.GJ8060@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 Sun, Nov 08, 2015 at 05:11:44PM +0200, Nikita Kiryanov wrote: > Simplify spl_mmc_load_image() code by moving the part that finds the mmc device > into its own function spl_mmc_find_device(), available in two flavors: DM and > non-DM. > > This refactor fixes a bug in which an error in the device location sequence > does not necessarily aborts the rest of the code. With this refactor, we fail > the moment there is an error. > > Signed-off-by: Nikita Kiryanov > Cc: Igor Grinberg > Cc: Paul Kocialkowski > Cc: Pantelis Antoniou > Cc: Tom Rini > Cc: Simon Glass > Reviewed-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: