diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-12 15:19:08 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 15:25:47 +0100 |
commit | 183c6e0fb4e39c860960de4abd7541bd260491bb (patch) | |
tree | e4bf91f149af58193fa25623c7ad2e4242d8d392 /drivers/usb | |
parent | 6ff1871617a3ea1eeaf88b42f652f9a311826bad (diff) | |
download | linux-183c6e0fb4e39c860960de4abd7541bd260491bb.tar.gz linux-183c6e0fb4e39c860960de4abd7541bd260491bb.tar.bz2 linux-183c6e0fb4e39c860960de4abd7541bd260491bb.zip |
drivers/usb/gadget: Convert to snd_card_create()
Convert from snd_card_new() to the new snd_card_create() function
for gmidi.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 60d3f9e9b51f..14e09abbddfc 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c @@ -1099,10 +1099,9 @@ static int gmidi_register_card(struct gmidi_device *dev) .dev_free = gmidi_snd_free, }; - card = snd_card_new(index, id, THIS_MODULE, 0); - if (!card) { - ERROR(dev, "snd_card_new failed\n"); - err = -ENOMEM; + err = snd_card_create(index, id, THIS_MODULE, 0, &card); + if (err < 0) { + ERROR(dev, "snd_card_create failed\n"); goto fail; } dev->card = card; |