OSDN Git Service

serial: of_serial: use devm_clk_get() instead of clk_get()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 May 2015 05:57:43 +0000 (14:57 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 21:55:12 +0000 (06:55 +0900)
commit3a63d22425ff229c8fb51e7aec1de1e9a4e19b34
treee606630415ed38792be12f23b078bbc0e61626cc
parent6e63be3fee141cc6d122f648b524a66160dbe6aa
serial: of_serial: use devm_clk_get() instead of clk_get()

The probe method of this driver calls clk_get(), but clk_put() is
missing from the remove callback.

Using the managed clk function is easier than fixing other parts.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c