diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 00:11:02 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-18 17:35:56 +0100 |
commit | 7de40c216c15c02c453f17b6c9ecee83f93790f1 (patch) | |
tree | 6e1b3ff53fbed5e5796659f2df880ac9140a0a96 /drivers/serial/samsung.c | |
parent | [ARM] S3C64XX: Remove __virt_to_bus/__bus_to_virt macros (diff) | |
download | linux-7de40c216c15c02c453f17b6c9ecee83f93790f1.tar.xz linux-7de40c216c15c02c453f17b6c9ecee83f93790f1.zip |
[ARM] S3C: Remove cpufreq warnings for unset serial information
As noted by Russell King, do not print any warnings if the
uinfo or tty fields are not set when a CPU frequency change
is sent.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/serial/samsung.c')
-rw-r--r-- | drivers/serial/samsung.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c index dc7e7ebad236..41ac94872b8d 100644 --- a/drivers/serial/samsung.c +++ b/drivers/serial/samsung.c @@ -937,17 +937,13 @@ static int s3c24xx_serial_cpufreq_transition(struct notifier_block *nb, struct ktermios *termios; struct tty_struct *tty; - if (uport->info == NULL) { - printk(KERN_WARNING "%s: info NULL\n", __func__); + if (uport->info == NULL) goto exit; - } tty = uport->info->port.tty; - if (tty == NULL) { - printk(KERN_WARNING "%s: tty is NULL\n", __func__); + if (tty == NULL) goto exit; - } termios = tty->termios; |