aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/atmel-ssc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index 3c09cbb70b1d..c208238b890a 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -159,11 +159,9 @@ static int ssc_probe(struct platform_device *pdev)
159 return -ENXIO; 159 return -ENXIO;
160 } 160 }
161 161
162 ssc->regs = devm_request_and_ioremap(&pdev->dev, regs); 162 ssc->regs = devm_ioremap_resource(&pdev->dev, regs);
163 if (!ssc->regs) { 163 if (IS_ERR(ssc->regs))
164 dev_dbg(&pdev->dev, "ioremap failed\n"); 164 return PTR_ERR(ssc->regs);
165 return -EINVAL;
166 }
167 165
168 ssc->phybase = regs->start; 166 ssc->phybase = regs->start;
169 167