Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 183c6e0f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 6ff18716
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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;