summaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2022-05-05 14:52:18 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2022-05-06 07:08:10 +0300
commitf126fbadce92b92c3a7be41e4abc1fbae93ae2ef (patch)
tree228b93973a5b2a964a53f048d95e0128026f6bd0 /scripts/gdb
parenta3b8d1b12c6bc3655332f19af84d0780ba88a578 (diff)
downloadlinux-f126fbadce92b92c3a7be41e4abc1fbae93ae2ef.tar.xz
cpufreq: mediatek: Unregister platform device on exit
We register the platform device when driver inits. However, we do not unregister it when driver exits. To resolve this, we declare the platform data to be a global static variable and rename it to be "cpufreq_pdev". With this global variable, we can do platform_device_unregister() when driver exits. Fixes: 501c574f4e3a ("cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC") Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> [ Viresh: Commit log and Subject ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions