tty: xuartps: disable clocks when not used
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 27 May 2016 09:35:19 +0000 (15:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:50:53 +0000 (13:50 -0700)
commit210417ce836aa3f0ededcc8f541f5e4a05d2e880
tree7142263a2f39a6b2e66c734b5c28c1455d2b1d9a
parent0058f0871efe7b01c6f2b3046c68196ab73e96da
tty: xuartps: disable clocks when not used

Currently the clocks are enabled at probe and disabled
at remove. Instead enable the clocks when used.

Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c