mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
Staging: line6: convert to snd_card_create()
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
cea9677819
commit
a405f43ee3
1 changed files with 5 additions and 4 deletions
|
@ -27,11 +27,12 @@ int line6_init_audio(struct usb_line6 *line6)
|
||||||
{
|
{
|
||||||
static int dev;
|
static int dev;
|
||||||
struct snd_card *card;
|
struct snd_card *card;
|
||||||
|
int err;
|
||||||
|
|
||||||
card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0);
|
err = snd_card_create(line6_index[dev], line6_id[dev], THIS_MODULE, 0,
|
||||||
|
&card);
|
||||||
if (card == NULL)
|
if (err < 0)
|
||||||
return -ENOMEM;
|
return err;
|
||||||
|
|
||||||
line6->card = card;
|
line6->card = card;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue