Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: seq: ump: Convert to snd_seq bus probe mechanism

The snd_seq bus got a dedicated probe function. Make use of that. This
fixes a runtime warning about the driver needing to be converted to the
bus probe method.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/054f1a0536228ccfe5f539ce854804f789f2ee64.1765283601.git.u.kleine-koenig@baylibre.com

authored by

Uwe Kleine-König and committed by
Takashi Iwai
d1c83a79 2e514916

+4 -7
+4 -7
sound/core/seq/seq_ump_client.c
··· 452 452 }; 453 453 454 454 /* create a sequencer client and ports for the given UMP endpoint */ 455 - static int snd_seq_ump_probe(struct device *_dev) 455 + static int snd_seq_ump_probe(struct snd_seq_device *dev) 456 456 { 457 - struct snd_seq_device *dev = to_seq_dev(_dev); 458 457 struct snd_ump_endpoint *ump = dev->private_data; 459 458 struct snd_card *card = dev->card; 460 459 struct seq_ump_client *client; ··· 512 513 } 513 514 514 515 /* remove a sequencer client */ 515 - static int snd_seq_ump_remove(struct device *_dev) 516 + static void snd_seq_ump_remove(struct snd_seq_device *dev) 516 517 { 517 - struct snd_seq_device *dev = to_seq_dev(_dev); 518 518 struct snd_ump_endpoint *ump = dev->private_data; 519 519 520 520 if (ump->seq_client) 521 521 seq_ump_client_free(ump->seq_client); 522 - return 0; 523 522 } 524 523 525 524 static struct snd_seq_driver seq_ump_driver = { 525 + .probe = snd_seq_ump_probe, 526 + .remove = snd_seq_ump_remove, 526 527 .driver = { 527 528 .name = KBUILD_MODNAME, 528 - .probe = snd_seq_ump_probe, 529 - .remove = snd_seq_ump_remove, 530 529 }, 531 530 .id = SNDRV_SEQ_DEV_ID_UMP, 532 531 .argsize = 0,