|
@@ -1659,9 +1659,9 @@ static int ux500_hash_probe(struct platform_device *pdev)
|
|
|
|
|
|
device_data->phybase = res->start;
|
|
|
device_data->base = devm_ioremap_resource(dev, res);
|
|
|
- if (!device_data->base) {
|
|
|
+ if (IS_ERR(device_data->base)) {
|
|
|
dev_err(dev, "%s: ioremap() failed!\n", __func__);
|
|
|
- ret = -ENOMEM;
|
|
|
+ ret = PTR_ERR(device_data->base);
|
|
|
goto out;
|
|
|
}
|
|
|
spin_lock_init(&device_data->ctx_lock);
|