Skip to content

Commit

Permalink
ALSA: seq: Don't compile snd_seq_device_load_drivers() for built-in
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 12, 2015
1 parent b6a4267 commit 72496ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions include/sound/seq_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ struct snd_seq_dev_ops {
/*
* prototypes
*/
#ifdef CONFIG_MODULES
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_register_driver(char *id, struct snd_seq_dev_ops *entry, int argsize);
int snd_seq_device_unregister_driver(char *id);
Expand Down
9 changes: 3 additions & 6 deletions sound/core/seq/seq_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,16 @@ void snd_seq_autoload_init(void)
#endif
}
EXPORT_SYMBOL(snd_seq_autoload_init);
#else
#define try_autoload(ops) /* NOP */
#endif


void snd_seq_device_load_drivers(void)
{
#ifdef CONFIG_MODULES
queue_autoload_drivers();
flush_work(&autoload_work);
#endif
}
EXPORT_SYMBOL(snd_seq_device_load_drivers);
#else
#define try_autoload(ops) /* NOP */
#endif

/*
* register a sequencer device
Expand Down

0 comments on commit 72496ed

Please sign in to comment.