1
linux/sound
Uwe Kleine-König 7d2ac1036b ALSA: move snd_powermac's probe function to .devinit.text
A pointer to snd_pmac_probe is passed to the core via
platform_driver_register and so the function must not disappear when the
.init sections are discarded.  Otherwise (when having HOTPLUG=y)
unbinding and binding a device to the driver via sysfs will result in an
oops as does a device being registered late.

An alternative to this patch is using platform_driver_probe instead of
platform_driver_register plus removing the pointer to the probe function
from the struct platform_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Rene Herman <rene.herman@keyaccess.nl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-06 03:52:57 +02:00
..
aoa Merge branch 'topic/aoa' into for-linus 2009-03-24 00:35:51 +01:00
arm Merge branch 'origin' into devel 2009-03-28 20:29:51 +00:00
atmel ALSA: Add ALSA driver for Atmel AC97 controller 2009-02-05 15:08:51 +01:00
core proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
drivers Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2 2009-03-27 17:28:43 +01:00
i2c V4L/DVB (10771): tea575x-tuner: convert it to V4L2 API 2009-03-30 12:43:02 -03:00
isa Merge branch 'topic/sscape-fix' into for-linus 2009-03-24 00:36:21 +01:00
mips Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
oss trivial: Fix misspelling of firmware 2009-03-30 15:21:59 +02:00
parisc ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
pci V4L/DVB (10771): tea575x-tuner: convert it to V4L2 API 2009-03-30 12:43:02 -03:00
pcmcia Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
ppc ALSA: move snd_powermac's probe function to .devinit.text 2009-04-06 03:52:57 +02:00
sh trivial: Fix misspelling of firmware 2009-03-30 15:21:59 +02:00
soc trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
sparc Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
spi ALSA: Convert to snd_card_create() in other sound/* 2009-01-12 15:21:19 +01:00
synth Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
usb Merge branch 'topic/usb-caiaq' into for-linus 2009-03-24 00:36:23 +01:00
ac97_bus.c ALSA: ac97 - Include ac97_codec.h for ac97_bus_type declaration 2008-12-02 16:25:37 +01:00
Kconfig ALSA: Add Atmel ALSA drivers directory 2009-02-05 15:08:53 +01:00
last.c
Makefile ALSA: Add Atmel ALSA drivers directory 2009-02-05 15:08:53 +01:00
sound_core.c ALSA: Fix declaration of sound_class 2008-12-15 16:55:27 +01:00
sound_firmware.c