]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmac: Don't register pmac PIC syscore ops when HW not present
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 31 May 2011 08:01:23 +0000 (18:01 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 May 2011 11:30:20 +0000 (20:30 +0900)
commit2362503e11c7a8c030338cc9da57cbdc03757388
treef4fab2933bd90211d3f62141f068b90060cd90f0
parent3b24354d6b4d6dca68bf2d843614879fde6d390a
powerpc/pmac: Don't register pmac PIC syscore ops when HW not present

The Apple custom PIC only exist in some earlier machine models,
anything with an MPIC will crash on suspend if we register those
syscore ops unconditionally.

This is a regression caused by commit 5143b4e6697f ("PM / PowerPC: Use
struct syscore_ops instead of sysdevs for PM")

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/powermac/pic.c