mmc: break out get_op_cond code to its own function
authorJon Nettleton <jon@solid-run.com>
Mon, 11 Jun 2018 12:26:19 +0000 (15:26 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:17:04 +0000 (10:17 +0200)
commit6c09eba507f9f78cfc96db760d064d70d691e9b9
treea89409542bf787b5033d24adeb898206a5f2ef33
parent31d9500498b9c9c4eff6a5b1075db7ea4a2db165
mmc: break out get_op_cond code to its own function

This code is useful for testing the existance of devices that
do not have card detect capabilities.  This breaks out the core
functionality and leaves the actual init logic and error reporting
in mmc_start_init().

Signed-off-by: Jon Nettleton <jon@solid-run.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefano Babic <sbabic@denx.de>
drivers/mmc/mmc.c
include/mmc.h