Commit 72496edc authored by Takashi Iwai's avatar Takashi Iwai

ALSA: seq: Don't compile snd_seq_device_load_drivers() for built-in

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b6a42670
...@@ -67,7 +67,11 @@ struct snd_seq_dev_ops { ...@@ -67,7 +67,11 @@ struct snd_seq_dev_ops {
/* /*
* prototypes * prototypes
*/ */
#ifdef CONFIG_MODULES
void snd_seq_device_load_drivers(void); void snd_seq_device_load_drivers(void);
#else
#define snd_seq_device_load_drivers()
#endif
int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize, struct snd_seq_device **result); int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize, struct snd_seq_device **result);
int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry, int argsize); int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry, int argsize);
int snd_seq_device_unregister_driver(char *id); int snd_seq_device_unregister_driver(char *id);
......
...@@ -198,19 +198,16 @@ void snd_seq_autoload_init(void) ...@@ -198,19 +198,16 @@ void snd_seq_autoload_init(void)
#endif #endif
} }
EXPORT_SYMBOL(snd_seq_autoload_init); EXPORT_SYMBOL(snd_seq_autoload_init);
#else
#define try_autoload(ops) /* NOP */
#endif
void snd_seq_device_load_drivers(void) void snd_seq_device_load_drivers(void)
{ {
#ifdef CONFIG_MODULES
queue_autoload_drivers(); queue_autoload_drivers();
flush_work(&autoload_work); flush_work(&autoload_work);
#endif
} }
EXPORT_SYMBOL(snd_seq_device_load_drivers); EXPORT_SYMBOL(snd_seq_device_load_drivers);
#else
#define try_autoload(ops) /* NOP */
#endif
/* /*
* register a sequencer device * register a sequencer device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment