mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
5bdf67312e
commit
7de40c216c
1 changed files with 2 additions and 6 deletions
|
@ -937,17 +937,13 @@ static int s3c24xx_serial_cpufreq_transition(struct notifier_block *nb,
|
||||||
struct ktermios *termios;
|
struct ktermios *termios;
|
||||||
struct tty_struct *tty;
|
struct tty_struct *tty;
|
||||||
|
|
||||||
if (uport->info == NULL) {
|
if (uport->info == NULL)
|
||||||
printk(KERN_WARNING "%s: info NULL\n", __func__);
|
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
|
||||||
|
|
||||||
tty = uport->info->port.tty;
|
tty = uport->info->port.tty;
|
||||||
|
|
||||||
if (tty == NULL) {
|
if (tty == NULL)
|
||||||
printk(KERN_WARNING "%s: tty is NULL\n", __func__);
|
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
|
||||||
|
|
||||||
termios = tty->termios;
|
termios = tty->termios;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue