]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: mt8173: Move resources allocation into ->probe()
authorPi-Cheng Chen <pi-cheng.chen@linaro.org>
Thu, 10 Dec 2015 03:48:13 +0000 (11:48 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 12 Dec 2015 01:27:16 +0000 (02:27 +0100)
commit89b56047f6f9b15fa3e9df3e34fa391835972ab7
tree6bb8490762da6fd7905d586aebb4cad80a2988d1
parent63d1d656a5232f2f189b217b50542eadcf9d74ae
cpufreq: mt8173: Move resources allocation into ->probe()

Since the return value of ->init() of cpufreq driver is not propagated
to the device driver model now, move resources allocation into
->probe() to handle -EPROBE_DEFER properly.

Signed-off-by: Pi-Cheng Chen <pi-cheng.chen@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/mt8173-cpufreq.c