i3c: master: Fix an error checking typo in 'cdns_i3c_master_probe()'

Fix a cut'n'paste typo.
Checking 'master->sysclk' is expected here.

Fixes: 603f2bee2c ("i3c: master: Add driver for Cadence IP")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
This commit is contained in:
Christophe JAILLET 2018-12-29 01:05:40 +01:00 committed by Boris Brezillon
parent bfeffd1552
commit 0fac32f24c
1 changed files with 2 additions and 2 deletions

View File

@ -1556,8 +1556,8 @@ static int cdns_i3c_master_probe(struct platform_device *pdev)
return PTR_ERR(master->pclk); return PTR_ERR(master->pclk);
master->sysclk = devm_clk_get(&pdev->dev, "sysclk"); master->sysclk = devm_clk_get(&pdev->dev, "sysclk");
if (IS_ERR(master->pclk)) if (IS_ERR(master->sysclk))
return PTR_ERR(master->pclk); return PTR_ERR(master->sysclk);
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) if (irq < 0)