]> 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)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:02 +0000 (09:54 +0800)
commit15f04cd562a4aada50cca0e6f6b6f05e61447f4d
treea4be6c60821ad67b75c2f738458f0ec38d894fdc
parent2fe51388dc2482d3c09b0e30853b52c276d04548
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