aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/pci/hda/hda_tegra.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-16 12:02:30 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-16 12:07:24 +0200
commit4cfe99c7f9592573e85a9768cfb2a8d7a7962618 (patch)
tree7670a3511c066ae3070856a9c89a7234d071aca8 /sound/pci/hda/hda_tegra.c
parentALSA: hda - Reenable tracepoints for controller (diff)
downloadwireguard-linux-4cfe99c7f9592573e85a9768cfb2a8d7a7962618.tar.xz
wireguard-linux-4cfe99c7f9592573e85a9768cfb2a8d7a7962618.zip
ALSA: hda/tegra - Fix build error and warning
I seem to have failed to run the build test properly... sound/pci/hda/hda_tegra.c: In function 'hda_tegra_dev_free': sound/pci/hda/hda_tegra.c:310:20: error: 'bus' undeclared (first use in this function) snd_hdac_bus_exit(bus); Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_tegra.c')
-rw-r--r--sound/pci/hda/hda_tegra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_tegra.c b/sound/pci/hda/hda_tegra.c
index d5349809f43d..801e9fb4a467 100644
--- a/sound/pci/hda/hda_tegra.c
+++ b/sound/pci/hda/hda_tegra.c
@@ -102,8 +102,6 @@ static int substream_alloc_pages(struct azx *chip,
struct snd_pcm_substream *substream,
size_t size)
{
- struct azx_dev *azx_dev = get_azx_dev(substream);
-
return snd_pcm_lib_malloc_pages(substream, size);
}
@@ -304,7 +302,7 @@ static int hda_tegra_dev_free(struct snd_device *device)
azx_free_stream_pages(chip);
azx_free_streams(chip);
- snd_hdac_bus_exit(bus);
+ snd_hdac_bus_exit(azx_bus(chip));
return 0;
}