summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/crypto/atmel-tdes.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/crypto/atmel-tdes.c')
-rw-r--r--kernel/drivers/crypto/atmel-tdes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/crypto/atmel-tdes.c b/kernel/drivers/crypto/atmel-tdes.c
index 2c7a628d0..bf467d7be 100644
--- a/kernel/drivers/crypto/atmel-tdes.c
+++ b/kernel/drivers/crypto/atmel-tdes.c
@@ -1417,9 +1417,9 @@ static int atmel_tdes_probe(struct platform_device *pdev)
}
tdes_dd->io_base = devm_ioremap_resource(&pdev->dev, tdes_res);
- if (!tdes_dd->io_base) {
+ if (IS_ERR(tdes_dd->io_base)) {
dev_err(dev, "can't ioremap\n");
- err = -ENOMEM;
+ err = PTR_ERR(tdes_dd->io_base);
goto res_err;
}