Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: s3c2410_ts - fix preparing/enabling clock

Use clk_prepare_enable/clk_disable_unprepare to make the driver
work properly with common clock framework.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Vasily Khoruzhick and committed by
Dmitry Torokhov
09c8fb63 b4e05923

+2 -2
+2 -2
drivers/input/touchscreen/s3c2410_ts.c
··· 264 264 return -ENOENT; 265 265 } 266 266 267 - clk_enable(ts.clock); 267 + clk_prepare_enable(ts.clock); 268 268 dev_dbg(dev, "got and enabled clocks\n"); 269 269 270 270 ts.irq_tc = ret = platform_get_irq(pdev, 0); ··· 369 369 free_irq(ts.irq_tc, ts.input); 370 370 del_timer_sync(&touch_timer); 371 371 372 - clk_disable(ts.clock); 372 + clk_disable_unprepare(ts.clock); 373 373 clk_put(ts.clock); 374 374 375 375 input_unregister_device(ts.input);