tty: serial: 8250_mtk: use pm_runtime callbacks for enabling
authorSascha Hauer <[email protected]>
Mon, 27 Apr 2015 06:49:56 +0000 (08:49 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 6 May 2015 20:27:02 +0000 (22:27 +0200)
commit68e5fc4a255a7f453b8d156b89d1e37a0ad61465
tree982c06a2d300f869534034195e9f28fea13b8ab8
parenta5fd844599d635baa7e527549dc10896944aad77
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/serial/8250/8250_mtk.c