summaryrefslogtreecommitdiff
path: root/sound/soc/uniphier/evea.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-27 18:07:25 +0300
committerMark Brown <broonie@kernel.org>2019-07-31 14:11:40 +0300
commit4e5bc35988af2483138feb3c5c3bf5fb0cae4228 (patch)
tree6d0dec470077852cf17ddb2f8ebdb28201e93dae /sound/soc/uniphier/evea.c
parent2d1ffc7d0f58f6a39a34854e952f5020fc655af0 (diff)
downloadlinux-4e5bc35988af2483138feb3c5c3bf5fb0cae4228.tar.xz
ASoC: uniphier: evea: use devm_platform_ioremap_resource() to simplify code
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190727150738.54764-22-yuehaibing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/uniphier/evea.c')
-rw-r--r--sound/soc/uniphier/evea.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.c
index f9c10165fbc1..d27e9ca07856 100644
--- a/sound/soc/uniphier/evea.c
+++ b/sound/soc/uniphier/evea.c
@@ -451,7 +451,6 @@ static const struct regmap_config evea_regmap_config = {
static int evea_probe(struct platform_device *pdev)
{
struct evea_priv *evea;
- struct resource *res;
void __iomem *preg;
int ret;
@@ -475,8 +474,7 @@ static int evea_probe(struct platform_device *pdev)
if (IS_ERR(evea->rst_exiv))
return PTR_ERR(evea->rst_exiv);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- preg = devm_ioremap_resource(&pdev->dev, res);
+ preg = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(preg))
return PTR_ERR(preg);