diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-07-23 14:01:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 10:33:41 -0400 |
commit | bd23ee0c5e2af1d3cdef813039384abd400dcffc (patch) | |
tree | d5b9d0a4534b28cd83ad319fd99daf6d30fdca52 /sound/soc/cirrus | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) |
ASoC: ep93xx: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/cirrus')
-rw-r--r-- | sound/soc/cirrus/ep93xx-ac97.c | 3 | ||||
-rw-r--r-- | sound/soc/cirrus/ep93xx-i2s.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c index ac73c607410a..2a5cdaea0c40 100644 --- a/sound/soc/cirrus/ep93xx-ac97.c +++ b/sound/soc/cirrus/ep93xx-ac97.c | |||
@@ -363,9 +363,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev) | |||
363 | return -ENOMEM; | 363 | return -ENOMEM; |
364 | 364 | ||
365 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 365 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
366 | if (!res) | ||
367 | return -ENODEV; | ||
368 | |||
369 | info->regs = devm_ioremap_resource(&pdev->dev, res); | 366 | info->regs = devm_ioremap_resource(&pdev->dev, res); |
370 | if (IS_ERR(info->regs)) | 367 | if (IS_ERR(info->regs)) |
371 | return PTR_ERR(info->regs); | 368 | return PTR_ERR(info->regs); |
diff --git a/sound/soc/cirrus/ep93xx-i2s.c b/sound/soc/cirrus/ep93xx-i2s.c index 17ad70bca9fe..f23f331e9a97 100644 --- a/sound/soc/cirrus/ep93xx-i2s.c +++ b/sound/soc/cirrus/ep93xx-i2s.c | |||
@@ -376,9 +376,6 @@ static int ep93xx_i2s_probe(struct platform_device *pdev) | |||
376 | return -ENOMEM; | 376 | return -ENOMEM; |
377 | 377 | ||
378 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 378 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
379 | if (!res) | ||
380 | return -ENODEV; | ||
381 | |||
382 | info->regs = devm_ioremap_resource(&pdev->dev, res); | 379 | info->regs = devm_ioremap_resource(&pdev->dev, res); |
383 | if (IS_ERR(info->regs)) | 380 | if (IS_ERR(info->regs)) |
384 | return PTR_ERR(info->regs); | 381 | return PTR_ERR(info->regs); |