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

ALSA: firewire-lib: delete unused kernel API

No driver use snd_fw_schedule_registration(). Let's delete it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210607081250.13397-10-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Takashi Sakamoto and committed by
Takashi Iwai
5fe8f0a0 ee5f0b32

-35
-32
sound/firewire/lib.c
··· 67 67 } 68 68 EXPORT_SYMBOL(snd_fw_transaction); 69 69 70 - #define PROBE_DELAY_MS (2 * MSEC_PER_SEC) 71 - 72 - /** 73 - * snd_fw_schedule_registration - schedule work for sound card registration 74 - * @unit: an instance for unit on IEEE 1394 bus 75 - * @dwork: delayed work with callback function 76 - * 77 - * This function is not designed for general purposes. When new unit is 78 - * connected to IEEE 1394 bus, the bus is under bus-reset state because of 79 - * topological change. In this state, units tend to fail both of asynchronous 80 - * and isochronous communication. To avoid this problem, this function is used 81 - * to postpone sound card registration after the state. The callers must 82 - * set up instance of delayed work in advance. 83 - */ 84 - void snd_fw_schedule_registration(struct fw_unit *unit, 85 - struct delayed_work *dwork) 86 - { 87 - u64 now, delay; 88 - 89 - now = get_jiffies_64(); 90 - delay = fw_parent_device(unit)->card->reset_jiffies 91 - + msecs_to_jiffies(PROBE_DELAY_MS); 92 - 93 - if (time_after64(delay, now)) 94 - delay -= now; 95 - else 96 - delay = 0; 97 - 98 - mod_delayed_work(system_wq, dwork, delay); 99 - } 100 - EXPORT_SYMBOL(snd_fw_schedule_registration); 101 - 102 70 MODULE_DESCRIPTION("FireWire audio helper functions"); 103 71 MODULE_AUTHOR("Clemens Ladisch <clemens@ladisch.de>"); 104 72 MODULE_LICENSE("GPL v2");
-3
sound/firewire/lib.h
··· 23 23 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR; 24 24 } 25 25 26 - void snd_fw_schedule_registration(struct fw_unit *unit, 27 - struct delayed_work *dwork); 28 - 29 26 #endif