dm: mmc: Add an implementation of the 'devnum' functions
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:08 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commitd508c82ba90dd92fa3b70875d3419c9d1b5493c0
tree16a63b6700a9e927ba8b56585d51a72fecca98e2
parent663acabdc548216d61a9d2b1f789d4e6606f7a52
dm: mmc: Add an implementation of the 'devnum' functions

Now that the MMC code accesses devices by number, we can implement this same
interface for driver model, allowing MMC to support using driver model for
block devices.

Add the required functions to the uclass.

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