|
@@ -775,9 +775,9 @@ static int __init mvsd_probe(struct platform_device *pdev)
|
|
|
|
|
|
spin_lock_init(&host->lock);
|
|
|
|
|
|
- host->base = devm_request_and_ioremap(&pdev->dev, r);
|
|
|
- if (!host->base) {
|
|
|
- ret = -ENOMEM;
|
|
|
+ host->base = devm_ioremap_resource(&pdev->dev, r);
|
|
|
+ if (IS_ERR(host->base)) {
|
|
|
+ ret = PTR_ERR(host->base);
|
|
|
goto out;
|
|
|
}
|
|
|
|