diff options
-rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 787a12064fa0..814391038abb 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
@@ -429,8 +429,10 @@ static int xuartps_clk_notifier_cb(struct notifier_block *nb, | |||
429 | * frequency. | 429 | * frequency. |
430 | */ | 430 | */ |
431 | if (!xuartps_calc_baud_divs(ndata->new_rate, xuartps->baud, | 431 | if (!xuartps_calc_baud_divs(ndata->new_rate, xuartps->baud, |
432 | &bdiv, &cd, &div8)) | 432 | &bdiv, &cd, &div8)) { |
433 | dev_warn(port->dev, "clock rate change rejected\n"); | ||
433 | return NOTIFY_BAD; | 434 | return NOTIFY_BAD; |
435 | } | ||
434 | 436 | ||
435 | spin_lock_irqsave(&xuartps->port->lock, flags); | 437 | spin_lock_irqsave(&xuartps->port->lock, flags); |
436 | 438 | ||