staging: bcm2835-audio: Use card->private_data
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Sep 2018 15:58:50 +0000 (17:58 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:30 +0000 (00:08 +0100)
commita87c9b82349b530d4b9fa303fd11f3dab1048735
treef848b0082605b1bd3e18b526936fd68d2e670a6e
parentbcc5def6f0e80412edc624649c11e6f4dcf6643c
staging: bcm2835-audio: Use card->private_data

commit 898001a0c845cefe5d47d133485712412853f0a8 upstream.

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