]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b1f14d501ea04674b14588e33b717fd880290fd
tree250f839a14daaaf7da99e47a016ecb12a94181f5
parent296b00130812b9fbec0ef7b76c147253b7207eda
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