Skip to content

Commit

Permalink
serial: 8250_dw: Check the data->pclk when get apb_pclk
Browse files Browse the repository at this point in the history
commit e16b46f upstream.

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

Fixes: c8ed99d("serial: 8250_dw: Add support for deferred probing")
Signed-off-by: Kefeng Wang <[email protected]>
Tested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Change-Id: I3978dbf483f92af82bdb49c3a9f8ff6e0d5794ac
  • Loading branch information
Kefeng Wang authored and Lee Jones committed Jun 25, 2020
1 parent f2d12b9 commit 6532d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int dw8250_probe(struct platform_device *pdev)
}

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;
goto err_clk;
}
Expand Down

0 comments on commit 6532d4f

Please sign in to comment.