cpufreq: s5pv210: Defer probe if getting regulators fail
authorPaweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Sun, 13 Jan 2019 19:57:54 +0000 (20:57 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:31:51 +0000 (10:01 +0530)
commite0e5b2b4f427cf6f403c6edfb52ce2b0e3acae23
treee9244fa832efec928be53795a9d4a3831f4d9db7
parent70e6e7d92bca041b66dac4512821a3aa72dda0cd
cpufreq: s5pv210: Defer probe if getting regulators fail

There is possibility, that when probing driver, regulators are not yet
initialized. In this case we should return EPROBE_DEFER and wait till
they're initialized, since they're required currently for cpufreq driver
to work. Also move regulator initialization code at beginning of probe,
so we can defer as fast as posibble.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/s5pv210-cpufreq.c