cpufreq: qoriq: convert to a platform driver
authorMian Yousaf Kaukab <ykaukab@suse.de>
Tue, 21 Apr 2020 08:29:59 +0000 (10:29 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 May 2020 05:17:27 +0000 (10:47 +0530)
commit157f527639da13c45b87adfc59ca6f6d354b8530
tree1210ce835adce04d764c3b9e6d00425fd68b563e
parent2dea651680cea1f3a29925de51002f33d1f55711
cpufreq: qoriq: convert to a platform driver

The driver has to be manually loaded if it is built as a module. It
is neither exporting MODULE_DEVICE_TABLE nor MODULE_ALIAS. Moreover,
no platform-device is created (and thus no uevent is sent) for the
clockgen nodes it depends on.

Convert the module to a platform driver with its own alias. Moreover,
drop whitelisted SOCs. Platform device will be created only for the
compatible platforms.

Reviewed-by: Yuantian Tang <andy.tang@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qoriq-cpufreq.c