]> 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)
commitb6fc318075fd4cd263534a0882ab619b0558c592
treefd91d682f7b17a5942930a8d7d381afa62fbddd3
parent6143859883a73d10bfaea7583ead35122dce18e7
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