summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-sham.c
diff options
context:
space:
mode:
authorLaurent Navet <laurent.navet@gmail.com>2013-05-02 14:00:38 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2013-05-24 11:55:28 +0200
commit30862281f717835ec06eca9aeb2b3ddc3da33bc1 (patch)
tree98b380563a28cc40cc4672eb7ba3b3a795715203 /drivers/crypto/omap-sham.c
parentcrypto: crct10dif - Simple correctness and speed test for CRCT10DIF hash (diff)
downloadlinux-30862281f717835ec06eca9aeb2b3ddc3da33bc1.tar.xz
linux-30862281f717835ec06eca9aeb2b3ddc3da33bc1.zip
drivers: crypto: use devm_ioremap_resource()
Replace calls to deprecated devm_request_and_ioremap by devm_ioremap_resource. Found with coccicheck and this semantic patch: scripts/coccinelle/api/devm_request_and_ioremap.cocci. Signed-off-by: Laurent Navet <laurent.navet@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-sham.c')
-rw-r--r--drivers/crypto/omap-sham.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c
index a1e1b4756ee5..4bb67652c200 100644
--- a/drivers/crypto/omap-sham.c
+++ b/drivers/crypto/omap-sham.c
@@ -1686,10 +1686,9 @@ static int omap_sham_probe(struct platform_device *pdev)
if (err)
goto res_err;
- dd->io_base = devm_request_and_ioremap(dev, &res);
- if (!dd->io_base) {
- dev_err(dev, "can't ioremap\n");
- err = -ENOMEM;
+ dd->io_base = devm_ioremap_resource(dev, &res);
+ if (IS_ERR(dd->io_base)) {
+ err = PTR_ERR(dd->io_base);
goto res_err;
}
dd->phys_base = res.start;