Skip to content

Commit

Permalink
Staging: line6: convert to snd_card_create()
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Apr 17, 2009
1 parent cea9677 commit a405f43
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/staging/line6/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ int line6_init_audio(struct usb_line6 *line6)
{
static int dev;
struct snd_card *card;
int err;

card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0);

if (card == NULL)
return -ENOMEM;
err = snd_card_create(line6_index[dev], line6_id[dev], THIS_MODULE, 0,
&card);
if (err < 0)
return err;

line6->card = card;

Expand Down

0 comments on commit a405f43

Please sign in to comment.