diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-12 15:19:57 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-05-18 11:59:45 +0200 |
commit | 12716cd44da7e6c935e2fb1783417ca31fbbaa97 (patch) | |
tree | dfdf9d29c1d2cc2adafb3cf28e77c33fc3616fed /sound | |
parent | 5f68d04d39eeb16b9ea7639f62c4ae59163b4813 (diff) | |
download | blackbird-op-linux-12716cd44da7e6c935e2fb1783417ca31fbbaa97.tar.gz blackbird-op-linux-12716cd44da7e6c935e2fb1783417ca31fbbaa97.zip |
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')
-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) dev_set_drvdata(&pdev->dev, priv); mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!mem) { - dev_err(&pdev->dev, "platform_get_resource failed\n"); - return -ENXIO; - } - priv->io = devm_ioremap_resource(&pdev->dev, mem); if (IS_ERR(priv->io)) return PTR_ERR(priv->io); |