]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/ps3: Add missing check for PS3 to rtc-ps3 platform device registration
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Sun, 23 Aug 2009 22:54:32 +0000 (22:54 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
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 <sachinp@in.ibm.com>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/ps3/time.c