summaryrefslogtreecommitdiffstats
path: root/sound/mips/sgio2audio.c
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2008-09-14 21:32:33 +0200
committerJaroslav Kysela <perex@perex.cz>2008-09-23 08:17:58 +0200
commit418c8f89911dd3d4930221def3bd56b38b051789 (patch)
treeafef7286cb6e10ef767c86c79c4eeefbc4f7d902 /sound/mips/sgio2audio.c
parentALSA: hda: fixed hp_nid DAC for DELL_M6 (diff)
downloadlinux-418c8f89911dd3d4930221def3bd56b38b051789.tar.xz
linux-418c8f89911dd3d4930221def3bd56b38b051789.zip
ALSA: Fix section for snd-aica platform driver
Don't use __init but __devinit to define probe function. A pointer to snd_aica_probe is passed to the core via platform_driver_register and so the function must not disappear after the module is loaded. Using __init and having HOTPLUG=y and SND_AICA=m the following probably oopses: echo -n AICA > /sys/bus/platform/driver/AICA/unbind echo -n AICA > /sys/bus/platform/driver/AICA/bind Strange enough add_aicamixer_controls which is only called by snd_aica_probe was already using __devinit. While at it move the remove function to .devexit.text section. Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> Cc: Adrian McMenamin <adrian@mcmen.demon.co.uk> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/mips/sgio2audio.c')
0 files changed, 0 insertions, 0 deletions