kernel-ark/drivers/macintosh
Neil Horman 5d469ec0f4 [PATCH] Correct misc_register return code handling in several drivers
Clean up several code points in which the return code from misc_register is
not handled properly.

Several modules failed to deregister various hooks when misc_register fails,
and this patch cleans them up.  Also there are a few modules that legitimately
don't care about the failure status of misc register.  These drivers however
unilaterally call misc_deregister on module unload.

Since misc_register doesn't initialize the list_head in the init_routine if it
fails, the deregister operation is at risk for oopsing when list_del is
called.  The initial solution was to manually init the list in the miscdev
structure in each of those modules, but the consensus in this thread was to
consolodate and do that universally inside misc_register.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Kylene Jo Hall <kjhall@us.ibm.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-07 08:39:35 -08:00
..
adb-iop.c
adb.c [PATCH] drivers/{char|isdn}: work_struct-induced breakage 2006-12-06 11:09:08 -08:00
adbhid.c
ans-lcd.c
apm_emu.c [PATCH] Correct misc_register return code handling in several drivers 2006-12-07 08:39:35 -08:00
Kconfig [POWERPC] Xserve cpu-meter driver 2006-12-04 20:39:30 +11:00
mac_hid.c
macio_asic.c
macio_sysfs.c
macio-adb.c
Makefile [POWERPC] Xserve cpu-meter driver 2006-12-04 20:39:30 +11:00
mediabay.c
nvram.c
rack-meter.c WorkQueue: Fix up arch-specific work items where possible 2006-12-05 19:36:26 +00:00
smu.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-12-05 17:01:28 +00:00
therm_adt746x.c [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
therm_pm72.c [POWERPC] Souped-up of_platform_device support 2006-12-04 16:08:52 +11:00
therm_pm72.h
therm_windtunnel.c [POWERPC] Souped-up of_platform_device support 2006-12-04 16:08:52 +11:00
via-cuda.c
via-macii.c
via-maciisi.c
via-pmu68k.c
via-pmu-backlight.c
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c
via-pmu.c [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
windfarm_core.c [PATCH] Add include/linux/freezer.h and move definitions from sched.h 2006-12-07 08:39:27 -08:00
windfarm_cpufreq_clamp.c
windfarm_lm75_sensor.c
windfarm_max6690_sensor.c
windfarm_pid.c
windfarm_pid.h
windfarm_pm81.c [PATCH] powerpc: windfarm shall request it's sub modules 2006-11-15 19:57:12 -08:00
windfarm_pm91.c [PATCH] powerpc: windfarm shall request it's sub modules 2006-11-15 19:57:12 -08:00
windfarm_pm112.c [PATCH] powerpc: windfarm shall request it's sub modules 2006-11-15 19:57:12 -08:00
windfarm_smu_controls.c
windfarm_smu_sat.c
windfarm_smu_sensors.c
windfarm.h