Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132723
b: refs/heads/master
c: 183c6e0
h: refs/heads/master
i:
  132721: 3da434a
  132719: b867972
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2009
1 parent 1451f61 commit 0e34b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ff1871617a3ea1eeaf88b42f652f9a311826bad
refs/heads/master: 183c6e0fb4e39c860960de4abd7541bd260491bb
7 changes: 3 additions & 4 deletions trunk/drivers/usb/gadget/gmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e34b9f

Please sign in to comment.