android_kernel_xiaomi_sm8350/drivers/macintosh
Julia Lawall 958a65f205 [POWERPC] Add missing of_node_put in drivers/macintosh/therm_adt746x.c
of_node_put is needed before discarding a value received from
of_find_node_by_name, eg in error handling code.

The semantic patch that makes the change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct device_node *n;
struct device_node *n1;
statement S;
identifier f;
expression E;
constant C;
@@

n = of_find_node_by_name(...)
...
if (!n) S
... when != of_node_put(n)
    when != n1 = f(n,...)
    when != E = n
    when any
    when strict
(
+ of_node_put(n);
  return -C;
|
  of_node_put(n);
|
  n1 = f(n,...)
|
  E = n
|
  return ...;
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-06-16 15:00:39 +10:00
..
adb-iop.c
adb.c [POWERPC] macintosh: Replace deprecated __initcall with device_initcall 2008-05-15 20:50:00 +10:00
adbhid.c
ans-lcd.c
ans-lcd.h
apm_emu.c
Kconfig [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
mac_hid.c mac-hid: fix build after lockdep annotation 2008-04-25 18:57:09 -07:00
macio_asic.c
macio_sysfs.c
macio-adb.c
Makefile [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
mediabay.c ide-pmac: bugfix for media-bay support rework 2008-06-15 21:00:23 +02:00
nvram.c
rack-meter.c
smu.c [POWERPC] Add missing of_node_put in drivers/macintosh/smu.c 2008-06-16 15:00:35 +10:00
therm_adt746x.c [POWERPC] Add missing of_node_put in drivers/macintosh/therm_adt746x.c 2008-06-16 15:00:39 +10:00
therm_pm72.c [POWERPC] macintosh: therm_pm72: driver_lock semaphore to mutex 2008-05-05 16:47:13 +10:00
therm_pm72.h
therm_windtunnel.c
via-cuda.c
via-macii.c
via-maciisi.c
via-pmu68k.c
via-pmu-backlight.c [POWERPC] Fix sleep on some powerbooks 2008-03-13 10:09:27 +11:00
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c
via-pmu.c [POWERPC] Fix build of modular drivers/macintosh/apm_emu.c 2008-03-13 10:09:27 +11:00
windfarm_core.c
windfarm_cpufreq_clamp.c
windfarm_lm75_sensor.c [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
windfarm_max6690_sensor.c [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
windfarm_pid.c
windfarm_pid.h
windfarm_pm81.c [POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug 2008-04-24 20:56:52 +10:00
windfarm_pm91.c [POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug 2008-04-24 20:56:52 +10:00
windfarm_pm112.c [POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug 2008-04-24 20:56:52 +10:00
windfarm_pm121.c [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
windfarm_smu_controls.c [POWERPC] windfarm: Add PowerMac 12,1 support 2008-04-29 15:57:35 +10:00
windfarm_smu_sat.c [POWERPC] macintosh: windfarm_smu_sat: semaphore to mutex 2008-05-05 16:47:13 +10:00
windfarm_smu_sensors.c
windfarm.h