07 Apr, 2010
1 commit
-
The conditionals were testing different values, but then all freeing the
same one, which could result in a double free.A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)//
@@
expression x,e;
identifier f;
iterator I;
statement S;
@@*kfree(x);
... when != &x
when != x = e
when != I(x,...) S
*x
//Signed-off-by: Julia Lawall
Signed-off-by: Benjamin Herrenschmidt
09 Feb, 2010
1 commit
-
machine is compatible is an OF-specific call. It should have
the of_ prefix to protect the global namespace.Signed-off-by: Grant Likely
Acked-by: Michal Simek
24 Apr, 2008
1 commit
-
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable
"macintosh" platform drivers, to re-enable auto loading.[dbrownell@users.sourceforge.net: registration fixes]
Signed-off-by: Kay Sievers
Signed-off-by: David Brownell
Cc: Benjamin Herrenschmidt
Signed-off-by: Andrew Morton
Signed-off-by: Paul Mackerras
16 Nov, 2006
1 commit
-
The windfarm code, in it's current incarnation, uses request_module() to
load the various submodules it needs for a given platform so that only
the main platform control module needs to be modprobed. However, it was
missing various bits. This fixes it. In the future, we'll use some
hotplug mecanisms to try to get all of this auto-loaded on the platforms
where it matters but that isn't ready yet.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Linus Torvalds
10 Oct, 2006
1 commit
-
The windfarm code uses a struct device_driver instead of
platform_driver, which can cause crashes if any of the callbacks are
called (like on module removal). This fixes it.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras
31 Jul, 2006
1 commit
-
Now that get_property() returns a void *, there's no need to cast its
return value. Also, treat the return value as const, so we can
constify get_property later.powermac platform & macintosh driver changes.
Built for pmac32_defconfig, g5_defconfig
Signed-off-by: Jeremy Kerr
Signed-off-by: Paul Mackerras
08 Feb, 2006
1 commit
-
This patch adds a windfarm module, windfarm_pm112, for the dual core G5s
(both 2 and 4 core models), keeping the machine from getting into
vacuum-cleaner mode ;) For proper credits, the patch was initially
written by Paul Mackerras, and slightly reworked by me to add overtemp
handling among others. The patch also removes the sysfs attributes from
windfarm_pm81 and windfarm_pm91 and instead adds code to the windfarm
core to automagically expose attributes for sensor & controls.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Linus Torvalds
08 Nov, 2005
1 commit
-
This adds a new thermal control framework for PowerMac, along with the
implementation for PowerMac8,1, PowerMac8,2 (iMac G5 rev 1 and 2), and
PowerMac9,1 (latest single CPU desktop). In the future, I expect to move
the older G5 thermal control to the new framework as well.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras