]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250_mtk: Use devm_clk_get
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 27 Apr 2015 06:49:55 +0000 (08:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:27:02 +0000 (22:27 +0200)
commit3ee3ef1543f4462511d8b3baacaa0e5b00b06634
treefd91d682f7b17a5942930a8d7d381afa62fbddd3
parentb4bc3021a39f679a3b7a8f37835cbec2eee36f48
tty: serial: 8250_mtk: Use devm_clk_get

When a struct device * is present clk_get should be used rather
than of_clk_get. Use the devm variant of this function to be able to
drop the clk_put in the error and remove pathes. While at it fix
a wrong error message.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_mtk.c