]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: bcm2835-audio: Simplify card object management
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:58 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:15:00 +0000 (11:15 +0200)
commit08633dcb5a7cde2c7cdd4744b8c9e87e43e103f9
tree782852180464a1b6f7123cefbcb3bac6abe32b86
parent2e42b089fad41eda44f7f0f8c5a2b807f7d4f9a0
staging: bcm2835-audio: Simplify card object management

Instead of creating a dummy child device to manage the card object,
just use devm stuff directly for releasing with snd_card_free().
This results in a lot of code reduction.

Since the dummy child devices are gone, the device object to be passed
to the memory allocator needs to be adjusted as well.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c