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)
commita5fd844599d635baa7e527549dc10896944aad77
treefd91d682f7b17a5942930a8d7d381afa62fbddd3
parent59f89f21b5f34b50584a218734d2b9cc1efd8c0c
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