Skip to content

Commit

Permalink
i3c: master: Fix an error checking typo in 'cdns_i3c_master_probe()'
Browse files Browse the repository at this point in the history
Fix a cut'n'paste typo.
Checking 'master->sysclk' is expected here.

Fixes: 603f2be ("i3c: master: Add driver for Cadence IP")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Christophe JAILLET authored and Greg Kroah-Hartman committed Jan 22, 2019
1 parent 01684db commit 52768f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i3c/master/i3c-master-cdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,8 +1556,8 @@ static int cdns_i3c_master_probe(struct platform_device *pdev)
return PTR_ERR(master->pclk);

master->sysclk = devm_clk_get(&pdev->dev, "sysclk");
if (IS_ERR(master->pclk))
return PTR_ERR(master->pclk);
if (IS_ERR(master->sysclk))
return PTR_ERR(master->sysclk);

irq = platform_get_irq(pdev, 0);
if (irq < 0)
Expand Down

0 comments on commit 52768f3

Please sign in to comment.