Skip to content

Commit

Permalink
ALSA: seq: Move EXPORT_SYMBOL() after each function
Browse files Browse the repository at this point in the history
... to follow the standard coding style.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 12, 2015
1 parent 0b444af commit b6a4267
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions sound/core/seq/seq_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ void snd_seq_autoload_lock(void)
{
atomic_inc(&snd_seq_in_init);
}
EXPORT_SYMBOL(snd_seq_autoload_lock);

void snd_seq_autoload_unlock(void)
{
atomic_dec(&snd_seq_in_init);
}
EXPORT_SYMBOL(snd_seq_autoload_unlock);

static void autoload_drivers(void)
{
Expand Down Expand Up @@ -195,17 +197,20 @@ void snd_seq_autoload_init(void)
queue_autoload_drivers();
#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);

/*
* register a sequencer device
Expand Down Expand Up @@ -268,6 +273,7 @@ int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize,

return 0;
}
EXPORT_SYMBOL(snd_seq_device_new);

/*
* free the existing device
Expand Down Expand Up @@ -326,6 +332,7 @@ static int snd_seq_device_dev_register(struct snd_device *device)
unlock_driver(ops);
return 0;
}
EXPORT_SYMBOL(snd_seq_device_register_driver);

/*
* disconnect the device
Expand All @@ -344,6 +351,7 @@ static int snd_seq_device_dev_disconnect(struct snd_device *device)
unlock_driver(ops);
return 0;
}
EXPORT_SYMBOL(snd_seq_device_unregister_driver);

/*
* register device driver
Expand Down Expand Up @@ -604,13 +612,3 @@ static void __exit alsa_seq_device_exit(void)

module_init(alsa_seq_device_init)
module_exit(alsa_seq_device_exit)

EXPORT_SYMBOL(snd_seq_device_load_drivers);
EXPORT_SYMBOL(snd_seq_device_new);
EXPORT_SYMBOL(snd_seq_device_register_driver);
EXPORT_SYMBOL(snd_seq_device_unregister_driver);
#ifdef CONFIG_MODULES
EXPORT_SYMBOL(snd_seq_autoload_init);
EXPORT_SYMBOL(snd_seq_autoload_lock);
EXPORT_SYMBOL(snd_seq_autoload_unlock);
#endif

0 comments on commit b6a4267

Please sign in to comment.