diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:19:08 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-12 09:25:47 -0500 |
commit | 183c6e0fb4e39c860960de4abd7541bd260491bb (patch) | |
tree | e4bf91f149af58193fa25623c7ad2e4242d8d392 /drivers/usb/gadget | |
parent | 6ff1871617a3ea1eeaf88b42f652f9a311826bad (diff) |
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/gadget')
-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) | |||
1099 | .dev_free = gmidi_snd_free, | 1099 | .dev_free = gmidi_snd_free, |
1100 | }; | 1100 | }; |
1101 | 1101 | ||
1102 | card = snd_card_new(index, id, THIS_MODULE, 0); | 1102 | err = snd_card_create(index, id, THIS_MODULE, 0, &card); |
1103 | if (!card) { | 1103 | if (err < 0) { |
1104 | ERROR(dev, "snd_card_new failed\n"); | 1104 | ERROR(dev, "snd_card_create failed\n"); |
1105 | err = -ENOMEM; | ||
1106 | goto fail; | 1105 | goto fail; |
1107 | } | 1106 | } |
1108 | dev->card = card; | 1107 | dev->card = card; |