diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 09:19:57 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 05:59:45 -0400 |
commit | 12716cd44da7e6c935e2fb1783417ca31fbbaa97 (patch) | |
tree | dfdf9d29c1d2cc2adafb3cf28e77c33fc3616fed /sound/soc | |
parent | 5f68d04d39eeb16b9ea7639f62c4ae59163b4813 (diff) |
sound/soc/kirkwood: 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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-i2s.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c index befe68f59285..4c9dad3263c5 100644 --- a/sound/soc/kirkwood/kirkwood-i2s.c +++ b/sound/soc/kirkwood/kirkwood-i2s.c | |||
@@ -471,11 +471,6 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev) | |||
471 | dev_set_drvdata(&pdev->dev, priv); | 471 | dev_set_drvdata(&pdev->dev, priv); |
472 | 472 | ||
473 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 473 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
474 | if (!mem) { | ||
475 | dev_err(&pdev->dev, "platform_get_resource failed\n"); | ||
476 | return -ENXIO; | ||
477 | } | ||
478 | |||
479 | priv->io = devm_ioremap_resource(&pdev->dev, mem); | 474 | priv->io = devm_ioremap_resource(&pdev->dev, mem); |
480 | if (IS_ERR(priv->io)) | 475 | if (IS_ERR(priv->io)) |
481 | return PTR_ERR(priv->io); | 476 | return PTR_ERR(priv->io); |