diff options
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index b2351cd33b0f..7595f24a006e 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -298,12 +298,10 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev, | |||
298 | 298 | ||
299 | static int imx_audmux_probe(struct platform_device *pdev) | 299 | static int imx_audmux_probe(struct platform_device *pdev) |
300 | { | 300 | { |
301 | struct resource *res; | ||
302 | const struct of_device_id *of_id = | 301 | const struct of_device_id *of_id = |
303 | of_match_device(imx_audmux_dt_ids, &pdev->dev); | 302 | of_match_device(imx_audmux_dt_ids, &pdev->dev); |
304 | 303 | ||
305 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 304 | audmux_base = devm_platform_ioremap_resource(pdev, 0); |
306 | audmux_base = devm_ioremap_resource(&pdev->dev, res); | ||
307 | if (IS_ERR(audmux_base)) | 305 | if (IS_ERR(audmux_base)) |
308 | return PTR_ERR(audmux_base); | 306 | return PTR_ERR(audmux_base); |
309 | 307 | ||