powerpc/ps3: Add missing check for PS3 to rtc-ps3 platform device registration
authorGeert Uytterhoeven <[email protected]>
Sun, 23 Aug 2009 22:54:32 +0000 (22:54 +0000)
committerBenjamin Herrenschmidt <[email protected]>
Thu, 27 Aug 2009 03:25:46 +0000 (13:25 +1000)
commit7b6a09f3d6aedeaac923824af2a5df30300b56e9
tree24e81f45b2dc8a3327de366126d69f5ed1239221
parentf415c413f458837bd0c27086b79aca889f9435e4
powerpc/ps3: Add missing check for PS3 to rtc-ps3 platform device registration

On non-PS3, we get:

| kernel BUG at drivers/rtc/rtc-ps3.c:36!

because the rtc-ps3 platform device is registered unconditionally in a kernel
with builtin support for PS3.

Reported-by: Sachin Sant <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
arch/powerpc/platforms/ps3/time.c