]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-audio: Use card->private_data
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:50 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:15:00 +0000 (11:15 +0200)
commit32ec5094233bb2d2e07a904388f34fa7eecd25cb
tree96bc9a27a23b2ea42ba9d6ffaa52abc353187cc9
parent18118454c8bbef3d08a8082dff15ee0fbb498b9d
staging: bcm2835-audio: Use card->private_data

Instead of allocating a separate snd_device object, let snd_card_new()
allocate the private resource.  This simplifies the code.

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.c