Skip to content

Commit

Permalink
crypto: s5p-sss - consistently use local 'dev' variable in probe()
Browse files Browse the repository at this point in the history
For code readability, the probe() function uses 'dev' variable instead
of '&pdev->dev', so update remaining places.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
krzk authored and herbertx committed Apr 22, 2021
1 parent 3d3b3a0 commit 87bff3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/s5p-sss.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,14 +2186,14 @@ static int s5p_aes_probe(struct platform_device *pdev)
}

pdata->res = res;
pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
pdata->ioaddr = devm_ioremap_resource(dev, res);
if (IS_ERR(pdata->ioaddr)) {
if (!pdata->use_hash)
return PTR_ERR(pdata->ioaddr);
/* try AES without HASH */
res->end -= 0x300;
pdata->use_hash = false;
pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res);
pdata->ioaddr = devm_ioremap_resource(dev, res);
if (IS_ERR(pdata->ioaddr))
return PTR_ERR(pdata->ioaddr);
}
Expand Down

0 comments on commit 87bff3d

Please sign in to comment.