ALSA: isa: Avoid passing NULL to memory allocators
authorTakashi Iwai <tiwai@suse.de>
Fri, 1 Feb 2019 11:14:53 +0000 (12:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 1 Feb 2019 16:16:40 +0000 (17:16 +0100)
commit0b6a2c9cf4a00f54a0916499ece8a5cf3cced385
tree675b07d3e0b4b06c835cacdc42e3fc1ad6c801bf
parent6a8125c3cab887a236e9b1dc89a3416c50e46f56
ALSA: isa: Avoid passing NULL to memory allocators

We used to pass NULL to memory allocators for ISA devices due to
historical reasons.  But we prefer rather a proper device object to be
assigned, so let's fix it by replacing snd_dma_isa_data() call with
card->dev reference, and kill snd_dma_isa_data() definition.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/sound/kernel-api/writing-an-alsa-driver.rst
include/sound/memalloc.h
sound/isa/ad1816a/ad1816a_lib.c
sound/isa/cmi8330.c
sound/isa/es1688/es1688_lib.c
sound/isa/es18xx.c
sound/isa/gus/gus_pcm.c
sound/isa/sb/sb16_main.c
sound/isa/sb/sb8_main.c
sound/isa/sscape.c
sound/isa/wss/wss_lib.c