staging: most: sound: call snd_card_new with struct device
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:04 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:50 +0000 (13:41 +0200)
commit69c90cf1b2faf5fa08fe5e18e4b47b044474506e
tree250f839a14daaaf7da99e47a016ecb12a94181f5
parent3598cec585f8d54ece41edeb123ce1c97a4516d3
staging: most: sound: call snd_card_new with struct device

This patch is needed as function snd_card_new needs a valid
parent device. Passing a NULL pointer leads to kernel Ooops.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/core.h
drivers/staging/most/sound/sound.c
drivers/staging/most/usb/usb.c