[CELL] fix cbe_thermal for legacy SLOF tree.
authorJean-Christophe DUBOIS <jcd@tribudubois.net>
Fri, 20 Jul 2007 19:39:24 +0000 (21:39 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Fri, 20 Jul 2007 19:41:40 +0000 (21:41 +0200)
commit827e3648dc2c31e01db7cd2e4498061cf78a97a9
treef34d99cd990b417b34754024ab28a4eba0abd3a5
parent64bafa9db7e92d5a46402613188b71800924ca1f
[CELL] fix cbe_thermal for legacy SLOF tree.

Previous patch changed based on Christian Krafft's comment.

On some legacy SLOF tree the generic code is unable to ioremap some Cell BE
registers. Therefore the "generic" functions are returning a NULL pointer,
triggering a crash on such platforms.

Let's handle this more gracefully.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
Acked-by: Christian Kraff <krafft@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/cbe_thermal.c