mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
crypto: s5p-sss - consistently use local 'dev' variable in probe()
For code readability, the probe() function uses 'dev' variable instead of '&pdev->dev', so update remaining places. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3d3b3a0067
commit
87bff3d8b9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user