diff options
Diffstat (limited to 'drivers/misc/atmel-ssc.c')
-rw-r--r-- | drivers/misc/atmel-ssc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 3c09cbb70b1d..c09c28f92055 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 | ||
@@ -175,7 +173,7 @@ static int ssc_probe(struct platform_device *pdev) | |||
175 | 173 | ||
176 | /* disable all interrupts */ | 174 | /* disable all interrupts */ |
177 | clk_enable(ssc->clk); | 175 | clk_enable(ssc->clk); |
178 | ssc_writel(ssc->regs, IDR, ~0UL); | 176 | ssc_writel(ssc->regs, IDR, -1); |
179 | ssc_readl(ssc->regs, SR); | 177 | ssc_readl(ssc->regs, SR); |
180 | clk_disable(ssc->clk); | 178 | clk_disable(ssc->clk); |
181 | 179 | ||