]> git.sur5r.net Git - u-boot/commit
dm: mmc: Adjust mmc_switch_part() to use a struct mmc
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 19:52:37 +0000 (13:52 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commitfdbb139f0ce10325b44dd3ec76993f8c8e798395
tree15e6b6d868d094195d1b1974b50cf76f1f44bb6f
parent1598dfcb101c2c3aaac68a4ac8fc9bdef2293eaa
dm: mmc: Adjust mmc_switch_part() to use a struct mmc

Instead of looking up the MMC device by number, just pass it in. This makes
it possible to use this function with driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/mmc.c