Otherwise, clk_gpu won't be disabled actually in the runtime.
Change-Id: If1e32061cbffc1564a5cf95fbf01aa91c827550d
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
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",
#endif
if (kbdev->clock) {
- clk_disable_unprepare(kbdev->clock);
+ clk_unprepare(kbdev->clock);
clk_put(kbdev->clock);
kbdev->clock = NULL;
}