summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/tegra/tegra20_das.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.c
index 10f9c3b19c88..1070b2710d5e 100644
--- a/sound/soc/tegra/tegra20_das.c
+++ b/sound/soc/tegra/tegra20_das.c
@@ -120,7 +120,6 @@ static const struct regmap_config tegra20_das_regmap_config = {
120 120
121static int tegra20_das_probe(struct platform_device *pdev) 121static int tegra20_das_probe(struct platform_device *pdev)
122{ 122{
123 struct resource *res;
124 void __iomem *regs; 123 void __iomem *regs;
125 int ret = 0; 124 int ret = 0;
126 125
@@ -134,8 +133,7 @@ static int tegra20_das_probe(struct platform_device *pdev)
134 } 133 }
135 das->dev = &pdev->dev; 134 das->dev = &pdev->dev;
136 135
137 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 136 regs = devm_platform_ioremap_resource(pdev, 0);
138 regs = devm_ioremap_resource(&pdev->dev, res);
139 if (IS_ERR(regs)) { 137 if (IS_ERR(regs)) {
140 ret = PTR_ERR(regs); 138 ret = PTR_ERR(regs);
141 goto err; 139 goto err;