]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: renesas-sdhi: Refactor probe function
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Mon, 16 Oct 2023 09:25:37 +0000 (10:25 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 17 Oct 2023 01:27:42 +0000 (03:27 +0200)
commite84dddf10a7d1b3e9a65113fb0387d789ecf1dbf
tree074ed040956302f1d0af34075bc3731a69f36308
parentef7ab75676b4199397f6cd5fde8074c144ba5576
mmc: renesas-sdhi: Refactor probe function

Move the assignment of priv->quirks earlier in the function. This allows
us to drop the quirks local variable and makes it easier to maintain
clean error handling when we add RZ/G2L support in the next patch.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/mmc/renesas-sdhi.c