[POWERPC] pmac_feature_call checks platform
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Nov 2006 04:53:00 +0000 (15:53 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 2 May 2007 06:35:01 +0000 (16:35 +1000)
commit0eb2e6019ae8e76a537bdca07b31e1524a3bba48
treea4391fefdd01688049b5a3ce6068d4e2bfa35b5a
parentdc87c3985e9b442c60994308a96f887579addc39
[POWERPC] pmac_feature_call checks platform

This patch makes sure that a caller of pmac_call_feature() won't try
to call into ppc_md.feature_call of another platform, which might
happen if some powermac drivers are loaded on non-powermac machines.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pmac_feature.h