summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-07-23 22:01:57 +0400
committerMark Brown <broonie@linaro.org>2013-07-24 18:34:56 +0400
commit0b4fa3374172c07691dcf568e72f63fb41e82561 (patch)
treec4c72018ff058452fa7cc555f7cfbdfa16043179 /sound/soc
parent3986b9829f638c8a7864e81cdb066aa3d79f05a5 (diff)
downloadlinux-0b4fa3374172c07691dcf568e72f63fb41e82561.tar.xz
ASoC: pxa: 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')
-rw-r--r--sound/soc/pxa/mmp-sspa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c
index 62142ce367c7..1605934d525e 100644
--- a/sound/soc/pxa/mmp-sspa.c
+++ b/sound/soc/pxa/mmp-sspa.c
@@ -430,9 +430,6 @@ static int asoc_mmp_sspa_probe(struct platform_device *pdev)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (res == NULL)
- return -ENOMEM;
-
priv->sspa->mmio_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(priv->sspa->mmio_base))
return PTR_ERR(priv->sspa->mmio_base);