Commit e16b46f1 authored by Kefeng Wang's avatar Kefeng Wang Committed by Greg Kroah-Hartman

serial: 8250_dw: Check the data->pclk when get apb_pclk

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

Fixes: c8ed99d4("serial: 8250_dw: Add support for deferred probing")
Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b1221a3
...@@ -462,7 +462,7 @@ static int dw8250_probe(struct platform_device *pdev) ...@@ -462,7 +462,7 @@ static int dw8250_probe(struct platform_device *pdev)
} }
data->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); data->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
if (IS_ERR(data->clk) && PTR_ERR(data->clk) == -EPROBE_DEFER) { if (IS_ERR(data->pclk) && PTR_ERR(data->pclk) == -EPROBE_DEFER) {
err = -EPROBE_DEFER; err = -EPROBE_DEFER;
goto err_clk; goto err_clk;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment