Commit 93ceaa30 authored by Eliot Blennerhassett's avatar Eliot Blennerhassett Committed by Takashi Iwai

ALSA: hda/tegra check correct return value from ioremap_resource

Signed-off-by: default avatarEliot Blennerhassett <eliot@blennerhassett.gen.nz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f0153c3d
...@@ -329,8 +329,8 @@ static int hda_tegra_init_chip(struct azx *chip, struct platform_device *pdev) ...@@ -329,8 +329,8 @@ static int hda_tegra_init_chip(struct azx *chip, struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
hda->regs = devm_ioremap_resource(dev, res); hda->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(chip->remap_addr)) if (IS_ERR(hda->regs))
return PTR_ERR(chip->remap_addr); return PTR_ERR(hda->regs);
chip->remap_addr = hda->regs + HDA_BAR0; chip->remap_addr = hda->regs + HDA_BAR0;
chip->addr = res->start + HDA_BAR0; chip->addr = res->start + HDA_BAR0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment