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

Input: tegra-kbc - add clk_prepare/clk_unprepare

Use clk_prepare/clk_unprepare as required by the generic clk framework.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Prashant Gaikwad and committed by
Stephen Warren
f762470b 20de12cc

+2 -2
+2 -2
drivers/input/keyboard/tegra-kbc.c
··· 492 492 unsigned int debounce_cnt; 493 493 u32 val = 0; 494 494 495 - clk_enable(kbc->clk); 495 + clk_prepare_enable(kbc->clk); 496 496 497 497 /* Reset the KBC controller to clear all previous status.*/ 498 498 tegra_periph_reset_assert(kbc->clk); ··· 556 556 disable_irq(kbc->irq); 557 557 del_timer_sync(&kbc->timer); 558 558 559 - clk_disable(kbc->clk); 559 + clk_disable_unprepare(kbc->clk); 560 560 } 561 561 562 562 static int tegra_kbc_open(struct input_dev *dev)