Commit 4cfe99c7 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 43db4a59
...@@ -102,8 +102,6 @@ static int substream_alloc_pages(struct azx *chip, ...@@ -102,8 +102,6 @@ static int substream_alloc_pages(struct azx *chip,
struct snd_pcm_substream *substream, struct snd_pcm_substream *substream,
size_t size) size_t size)
{ {
struct azx_dev *azx_dev = get_azx_dev(substream);
return snd_pcm_lib_malloc_pages(substream, size); return snd_pcm_lib_malloc_pages(substream, size);
} }
...@@ -304,7 +302,7 @@ static int hda_tegra_dev_free(struct snd_device *device) ...@@ -304,7 +302,7 @@ static int hda_tegra_dev_free(struct snd_device *device)
azx_free_stream_pages(chip); azx_free_stream_pages(chip);
azx_free_streams(chip); azx_free_streams(chip);
snd_hdac_bus_exit(bus); snd_hdac_bus_exit(azx_bus(chip));
return 0; return 0;
} }
......
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