diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-07-23 20:01:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-24 15:34:56 +0100 |
commit | 0b4fa3374172c07691dcf568e72f63fb41e82561 (patch) | |
tree | c4c72018ff058452fa7cc555f7cfbdfa16043179 /sound/soc/pxa/mmp-sspa.c | |
parent | 3986b9829f638c8a7864e81cdb066aa3d79f05a5 (diff) | |
download | op-kernel-dev-0b4fa3374172c07691dcf568e72f63fb41e82561.zip op-kernel-dev-0b4fa3374172c07691dcf568e72f63fb41e82561.tar.gz |
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/pxa/mmp-sspa.c')
-rw-r--r-- | sound/soc/pxa/mmp-sspa.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c index 62142ce..1605934 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); |