]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: tmio: use -EPROBE_DEFER if driver can't find regulator
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 20 Nov 2013 08:30:39 +0000 (00:30 -0800)
committerChris Ball <cjb@laptop.org>
Thu, 12 Dec 2013 01:41:57 +0000 (20:41 -0500)
commitc39f5164dbcd2f220310f284c124f363f18cb1c8
tree2da0a093f613c7d19598ecc3a179dba66fcf18b4
parent580899d6a59a1885c5a83309cc3254f73af99fd3
mmc: tmio: use -EPROBE_DEFER if driver can't find regulator

Current tmio driver tries to use default ocr_avail if 1) it couldn't
find regulator and 2) if platform data doesn't have ocr_mask.
But, there is no guarantee that regulator driver probe is faster than
TMIO driver probe.  TMIO driver will not use regulator in such case.

By this patch, TMIO driver returns -EPROBE_DEFER if it couldn't find
regulator and if platform doesn't have ocr_mask.  Because, there is a
possibility that regulator has not been probed, but the user expects it.

This patch changes tmio_mmc_host_probe() behavior, but there is no user
who has conflict.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc_pio.c