diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2013-12-16 07:07:24 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-16 15:45:43 -0500 |
commit | bbe580302d33cff282129e26c44f9c3450d6a086 (patch) | |
tree | 44d5f544cce509b6e3d65f37de8dfafac4107a9c /sound/soc/adi | |
parent | 7fd7a48bd584a66cc4b0e3b92bb75b061578e19e (diff) |
ASoC: axi-spdif: Use devm_ioremap_resource() instead of devm_request_and_ioremap()
devm_request_and_ioremap() has been deprecated in favour of
devm_ioremap_resource(). Fixes the following coccinelle warning:
sound/soc/adi/axi-spdif.c:194:8-32: ERROR: deprecated devm_request_and_ioremap() API used on line 194
Generated by: coccinelle/api/devm_ioremap_resource.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/adi')
-rw-r--r-- | sound/soc/adi/axi-spdif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/adi/axi-spdif.c b/sound/soc/adi/axi-spdif.c index d5408d23b438..8db7a9920695 100644 --- a/sound/soc/adi/axi-spdif.c +++ b/sound/soc/adi/axi-spdif.c | |||
@@ -191,9 +191,9 @@ static int axi_spdif_probe(struct platform_device *pdev) | |||
191 | platform_set_drvdata(pdev, spdif); | 191 | platform_set_drvdata(pdev, spdif); |
192 | 192 | ||
193 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 193 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
194 | base = devm_request_and_ioremap(&pdev->dev, res); | 194 | base = devm_ioremap_resource(&pdev->dev, res); |
195 | if (!base) | 195 | if (IS_ERR(base)) |
196 | return -EBUSY; | 196 | return PTR_ERR(base); |
197 | 197 | ||
198 | spdif->regmap = devm_regmap_init_mmio(&pdev->dev, base, | 198 | spdif->regmap = devm_regmap_init_mmio(&pdev->dev, base, |
199 | &axi_spdif_regmap_config); | 199 | &axi_spdif_regmap_config); |