]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3277dd9dabec772e342e8644b77c380dfc45c4e5
tree50f534621a51627049e73e1f8b233b5b5bde35dc
parent8463d52f3a7361f3a2ca319e14e39c599b4ef98d
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