serial: pxa: Do not tweak clock in pxa serial write() function
authorHaojun Bao <hjbao@marvell.com>
Thu, 17 Jan 2013 08:01:51 +0000 (00:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 01:31:24 +0000 (17:31 -0800)
commited35e09248c12d246b49b6b3ce9fdcec8a5badb6
tree25adfb8e34a261391be88aa0f928cf1309a05bab
parentb786337d8c2867962348711e8d1211b292b6e3c5
serial: pxa: Do not tweak clock in pxa serial write() function

The write() function could be used by printk(), which is atomic and
tweaking clock there can cause "BUG: sleeping function called from
invalid context".

Signed-off-by: Bao Haojun <hjbao@marvell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pxa.c