aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-sirf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-sirf.c')
-rw-r--r--drivers/i2c/busses/i2c-sirf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-sirf.c b/drivers/i2c/busses/i2c-sirf.c
index 3f1818b87974..183cf05be1de 100644
--- a/drivers/i2c/busses/i2c-sirf.c
+++ b/drivers/i2c/busses/i2c-sirf.c
@@ -308,10 +308,9 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev)
308 goto out; 308 goto out;
309 } 309 }
310 310
311 siic->base = devm_request_and_ioremap(&pdev->dev, mem_res); 311 siic->base = devm_ioremap_resource(&pdev->dev, mem_res);
312 if (siic->base == NULL) { 312 if (IS_ERR(siic->base)) {
313 dev_err(&pdev->dev, "IO remap failed!\n"); 313 err = PTR_ERR(siic->base);
314 err = -ENOMEM;
315 goto out; 314 goto out;
316 } 315 }
317 316