mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
MALI: bifrost: rockchip: not to enable clk_gpu when probing
Otherwise, clk_gpu won't be disabled actually in the runtime. Change-Id: I92787a5e23bfb92f5a79efda92c130832751cc3b Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
parent
192b050c35
commit
789d098dd4
|
|
@ -3917,7 +3917,7 @@ static int power_control_init(struct platform_device *pdev)
|
|||
dev_info(kbdev->dev, "Continuing without Mali clock control\n");
|
||||
/* Allow probe to continue without clock. */
|
||||
} else {
|
||||
err = clk_prepare_enable(kbdev->clock);
|
||||
err = clk_prepare(kbdev->clock);
|
||||
if (err) {
|
||||
dev_err(kbdev->dev,
|
||||
"Failed to prepare and enable clock (%d)\n",
|
||||
|
|
@ -3969,7 +3969,7 @@ static void power_control_term(struct kbase_device *kbdev)
|
|||
#endif
|
||||
|
||||
if (kbdev->clock) {
|
||||
clk_disable_unprepare(kbdev->clock);
|
||||
clk_unprepare(kbdev->clock);
|
||||
clk_put(kbdev->clock);
|
||||
kbdev->clock = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user