kernel_optimize_test/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 [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
adb.c [PATCH] drivers/{char|isdn}: work_struct-induced breakage 2006-12-06 11:09:08 -08:00
adbhid.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
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 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
macio_asic.c Merge branch 'merge' 2006-08-01 10:37:25 +10:00
macio_sysfs.c [POWERPC] powermac: Constify & voidify get_property() 2006-07-31 15:55:05 +10:00
macio-adb.c [PATCH] misc ppc pt_regs fixes 2006-10-08 12:32:36 -07:00
Makefile [POWERPC] Xserve cpu-meter driver 2006-12-04 20:39:30 +11:00
mediabay.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
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 [POWERPC] Xserve G5 thermal control fixes 2006-07-28 10:42:49 +10:00
therm_windtunnel.c [POWERPC] Souped-up of_platform_device support 2006-12-04 16:08:52 +11:00
via-cuda.c [PATCH] powerpc: irq change build breaks 2006-10-05 18:39:04 -07:00
via-macii.c [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
via-maciisi.c [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
via-pmu68k.c [PATCH] m68k pt_regs fixes 2006-10-07 10:51:14 -07:00
via-pmu-backlight.c [PATCH] Fix uninitialised spinlock in via-pmu-backlight code. 2006-09-29 09:18:03 -07:00
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c [POWERPC] powermac: Constify & voidify get_property() 2006-07-31 15:55:05 +10:00
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 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
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 [PATCH] completions: lockdep annotate on stack completions 2006-10-01 00:39:24 -07:00
windfarm_smu_sat.c [PATCH] windfarm_smu_sat.c: simplify around i2c_add_driver() 2006-09-29 09:18:19 -07:00
windfarm_smu_sensors.c [PATCH] completions: lockdep annotate on stack completions 2006-10-01 00:39:24 -07:00
windfarm.h