All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/tegra check correct return value from ioremap_resource
@ 2015-02-14  2:32 eliot
  2015-02-14  7:58 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: eliot @ 2015-02-14  2:32 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, Eliot Blennerhassett

From: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>

Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>
---
 sound/pci/hda/hda_tegra.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c
index 227990b..375e94f 100644
--- a/sound/pci/hda/hda_tegra.c
+++ b/sound/pci/hda/hda_tegra.c
@@ -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;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: hda/tegra check correct return value from ioremap_resource
  2015-02-14  2:32 [PATCH] ALSA: hda/tegra check correct return value from ioremap_resource eliot
@ 2015-02-14  7:58 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2015-02-14  7:58 UTC (permalink / raw)
  To: eliot; +Cc: alsa-devel

At Sat, 14 Feb 2015 15:32:24 +1300,
eliot@blennerhassett.gen.nz wrote:
> 
> From: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>
> 
> Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>

Applied, thanks.


Takashi

> ---
>  sound/pci/hda/hda_tegra.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c
> index 227990b..375e94f 100644
> --- a/sound/pci/hda/hda_tegra.c
> +++ b/sound/pci/hda/hda_tegra.c
> @@ -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;
> -- 
> 1.9.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-14  7:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-14  2:32 [PATCH] ALSA: hda/tegra check correct return value from ioremap_resource eliot
2015-02-14  7:58 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.