* Mid level stuff
*/
-struct sound_settings dmasound;
+struct sound_settings dmasound = { .lock = SPIN_LOCK_UNLOCKED };
static inline void sound_silence(void)
{
.release = mixer_release,
};
-static void __init mixer_init(void)
+static void mixer_init(void)
{
#ifndef MODULE
int mixer_unit;
#endif
};
-static int __init sq_init(void)
+static int sq_init(void)
{
#ifndef MODULE
int sq_unit;
if (dmasound.mach.record)
sq_fops.read = sq_read ;
#endif
- spin_lock_init(&dmasound.lock);
sq_unit = register_sound_dsp(&sq_fops, -1);
if (sq_unit < 0) {
printk(KERN_ERR "dmasound_core: couldn't register fops\n") ;
.release = state_release,
};
-static int __init state_init(void)
+static int state_init(void)
{
#ifndef MODULE
int state_unit;
* This function is called by _one_ chipset-specific driver
*/
-int __init dmasound_init(void)
+int dmasound_init(void)
{
int res ;
#ifdef MODULE
#else /* !MODULE */
-static int __init dmasound_setup(char *str)
+static int dmasound_setup(char *str)
{
int ints[6], size;