misc: tegra-profiler: fix crash in power_clk stop
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Fri, 5 May 2017 11:56:59 +0000 (15:56 +0400)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:22:20 +0000 (17:22 +0300)
commitc8961c2505909a12e8185cc0fefb2b5129693d0b
tree95916c0812c8d9266b6341ebaa5db8ab9d099009
parent7d652fe3c064864a2e0400321a7e60ebd5122016
misc: tegra-profiler: fix crash in power_clk stop

Fix crash in profiler when using gpu and emc clocks: using
the freed clock source can cause the kernel panic.
Remove redundant clk_get_sys calls.

Bug 1918185

Change-Id: I421049c7a30fad6356f7300226e84794cecf0673
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1476299
(cherry picked from commit 8b0d7e1748b31dd87ab2837a6b9f0a1d2e3d6ecc)
drivers/misc/tegra-profiler/power_clk.c