]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: imx: enable the clocks only when the uart is used
authorHuang Shijie <b32955@freescale.com>
Tue, 4 Jun 2013 01:59:33 +0000 (09:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 20:05:38 +0000 (13:05 -0700)
commit28eb4274e7ec3ddba6711e3d13e374046b3c2230
treec72d2e58524ba3d6bc065cdc4caccce085c3ef11
parente943f58ea84a80cc88dfceb6a5ed788d0ba24a1e
serial: imx: enable the clocks only when the uart is used

Current code opens the clocks when the uart driver is probed.
This will wastes some power if several uarts are enabled, but not really
used.

So close these clocks for uart, and enable the clocks only when
the uart is used.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c