linux/drivers/macintosh
Jean Delvare 33a470f6d5 macintosh/therm_adt746x: Fix sysfs attributes lifetime
Looking at drivers/macintosh/therm_adt746x.c, the sysfs files are
created in thermostat_init() and removed in thermostat_exit(), which
are the driver's init and exit functions. These files are backed-up by
a per-device structure, so it looks like the wrong thing to do: the
sysfs files have a lifetime longer than the data structure that is
backing it up.

I think that sysfs files creation should be moved to the end of
probe_thermostat() and sysfs files removal should be moved to the
beginning of remove_thermostat().

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Christian Kujau <lists@nerdbynature.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Colin Leroy <colin@colino.net>
Cc: stable@kernel.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-02-03 17:39:49 +11:00
..
Kconfig powerpc: Make macintosh/mediabay driver depend on CONFIG_BLOCK 2009-04-22 14:56:35 +10:00
Makefile
adb-iop.c
adb.c
adbhid.c
ans-lcd.c macintosh: Remove BKL from ans-lcd 2009-10-14 17:36:50 +02:00
ans-lcd.h
apm_emu.c
mac_hid.c sysctl: Drop & in front of every proc_handler. 2009-11-18 08:37:40 -08:00
macio-adb.c
macio_asic.c powerpc/macio: Add dma_parms support to macio 2009-12-08 16:02:52 +11:00
macio_sysfs.c
mediabay.c powerpc/macio: Rework hotplug media bay support 2009-12-09 17:09:14 +11:00
nvram.c macintosh: Remove BKL from nvram driver 2009-11-24 14:31:27 +11:00
rack-meter.c trivial: remove unnecessary semicolons 2009-09-21 15:14:58 +02:00
smu.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
therm_adt746x.c macintosh/therm_adt746x: Fix sysfs attributes lifetime 2010-02-03 17:39:49 +11:00
therm_pm72.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
therm_pm72.h
therm_windtunnel.c powerpc/macintosh: Make Open Firmware device id constant 2010-01-15 13:26:04 +11:00
via-cuda.c m68k: machw.h cleanup 2008-12-28 20:00:03 +01:00
via-macii.c m68k: machw.h cleanup 2008-12-28 20:00:03 +01:00
via-maciisi.c m68k: count can reach 51, not 50 2009-08-26 23:14:49 +02:00
via-pmu-backlight.c
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c leds: Fix LED names 2009-09-07 14:37:27 +01:00
via-pmu.c powerpc/via-pmu: Convert to proc_fops/seq_file 2009-12-08 15:59:34 +11:00
via-pmu68k.c m68k: machw.h cleanup 2008-12-28 20:00:03 +01:00
windfarm.h
windfarm_core.c
windfarm_cpufreq_clamp.c
windfarm_lm75_sensor.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_max6690_sensor.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_pid.c
windfarm_pid.h
windfarm_pm81.c
windfarm_pm91.c
windfarm_pm112.c
windfarm_pm121.c
windfarm_smu_controls.c powerpc/windfarm: Add detection for second cpu pump 2009-12-08 16:01:10 +11:00
windfarm_smu_sat.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_smu_sensors.c