diff options
Diffstat (limited to 'sound/soc')
-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); |