clk: raspberrypi: register platform device for raspberrypi-cpufreq
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Wed, 12 Jun 2019 18:24:57 +0000 (20:24 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 25 Jun 2019 23:04:28 +0000 (16:04 -0700)
commite2bb18347c8e5c4187831f3700c380e3c759601a
tree72c1631ad1c7d11226123a44ee663e605d1d8e95
parent91f2cf4a6b2131016b1ae9c9500245f0572112c7
clk: raspberrypi: register platform device for raspberrypi-cpufreq

As 'clk-raspberrypi' depends on RPi's firmware interface, which might be
configured as a module, the cpu clock might not be available for the
cpufreq driver during it's init process. So we register the
'raspberrypi-cpufreq' platform device after the probe sequence succeeds.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-raspberrypi.c