MALI: midgard: rockchip: not to enable clk_gpu when probing

Otherwise, clk_gpu won't be disabled actually in the runtime.

Change-Id: If1e32061cbffc1564a5cf95fbf01aa91c827550d
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
This commit is contained in:
chenzhen
2016-06-30 14:54:11 +08:00
committed by Gerrit Code Review
parent 0a7235769c
commit 0556935fb1

View File

@@ -3376,7 +3376,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",
@@ -3426,7 +3426,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;
}