]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: mmc: Add a way to bind MMC devices with driver model
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 19:52:40 +0000 (13:52 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commitad27dd5e13436b554f0f3cb9cd3e79634494072d
treefc6a8492dcf32788ad177b1f1e3c4e17e1e3809b
parent8ef761ed4cda2d078b3d8b098d105472cbad8fb5
dm: mmc: Add a way to bind MMC devices with driver model

Binding an MMC device when CONFIG_BLK is enabled requires that a block
device be bound as a child of the MMC device. Add a function to do this.
The mmc_create() method will be used only when DM_BLK is disabled.

Add an unbind method also.

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