serial: 8250_dw: Check the data->pclk when get apb_pclk
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 24 Aug 2016 08:33:33 +0000 (16:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:06:46 +0000 (12:06 +0200)
commit0c33f651585ccd1d07875d2a3a71a0c11520cb3b
tree66fddbb44f50dda632dbd4dd1c7c3ff3f3993b09
parent2229308774bf777bef0288a24cc0ebd43e6e8aa5
serial: 8250_dw: Check the data->pclk when get apb_pclk

commit e16b46f190a22587898b331f9d58583b0b166c9a upstream.

It should check the data->pclk, not data->clk when get apb_pclk.

Fixes: c8ed99d4f6a8("serial: 8250_dw: Add support for deferred probing")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c