forked from luck/tmp_suning_uos_patched
ALSA: hda/tegra check correct return value from ioremap_resource
Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f0153c3d94
commit
93ceaa303b
|
@ -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);
|
||||
hda->regs = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(chip->remap_addr))
|
||||
return PTR_ERR(chip->remap_addr);
|
||||
if (IS_ERR(hda->regs))
|
||||
return PTR_ERR(hda->regs);
|
||||
|
||||
chip->remap_addr = hda->regs + HDA_BAR0;
|
||||
chip->addr = res->start + HDA_BAR0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user