dm: mmc: Check that drivers have operations
authorSimon Glass <sjg@chromium.org>
Mon, 24 Apr 2017 02:02:09 +0000 (20:02 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:05 +0000 (07:03 -0600)
commit66656020ff180e2a689fbe83fcd02c3e42ecdc30
tree51f724bc32e317e4df0e43db33e0065b5bd6875c
parente48eeb9ea3aed67e4bda94c65a7f13e8672a3501
dm: mmc: Check that drivers have operations

When binding a new MMC device, make sure that it has the required
operations. Since for now we still support *not* having the operations
(with CONFIG_DM_MMC_OPS not enabled) it makes sense to add this check.

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