mci: Rely on NULL being a dummy regulator
Since NULL, is a dummy regulator, we can drop a bit of error checking
logic and simplify the code if we assing host->supply to NULL in case
we can't find an appropriate regulator during probing.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7036c93 commit ac6bbe6ab32309218d1806572e0f1f331f9a8dcd
@Andrey Smirnov Andrey Smirnov authored on 13 Dec 2018
Sascha Hauer committed on 17 Dec 2018
Showing 1 changed file
View
drivers/mci/mci-core.c