OSDN Git Service

cpufreq: armada-37xx: Fix module unloading
authorPali Rohár <pali@kernel.org>
Thu, 8 Apr 2021 11:42:23 +0000 (13:42 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 9 Apr 2021 09:47:33 +0000 (15:17 +0530)
commitdbbd49bade0548db87ceb1943951dea456af2e22
tree50f534621a51627049e73e1f8b233b5b5bde35dc
parent5f23eb9dc0cd2a58bbfe887f335ad632368e530a
cpufreq: armada-37xx: Fix module unloading

This driver is missing module_exit hook. Add proper driver exit function
which unregisters the platform device and cleans up the data.

Signed-off-by: Pali Rohár <pali@kernel.org>
Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Tested-by: Anders Trier Olesen <anders.trier.olesen@gmail.com>
Tested-by: Philip Soares <philips@netisense.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-37xx-cpufreq.c