]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250_mtk: use pm_runtime callbacks for enabling
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 27 Apr 2015 06:49:56 +0000 (08:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:27:02 +0000 (22:27 +0200)
commit099afd1f86f46e703464387bbad89069d62831cd
tree982c06a2d300f869534034195e9f28fea13b8ab8
parent3ee3ef1543f4462511d8b3baacaa0e5b00b06634
tty: serial: 8250_mtk: use pm_runtime callbacks for enabling

The pm_runtime callbacks already enable and disable the device.
Use them in probe() and remove() instead of duplicating the
code. This allows us to concentrate more code for enabling/disabling
the UART in a single place.

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