]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix define_machine so machine_is() works from modules
authorPaul Mackerras <paulus@samba.org>
Sun, 23 Apr 2006 00:42:04 +0000 (10:42 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 23 Apr 2006 00:42:04 +0000 (10:42 +1000)
commitd0e15bed84db7a9b0ea85d2ad9707b5e6d2e38da
treeb27ecd617ae9113d083514b10ec27a649fd22c78
parent7c8ce71b092425f1e938285cab2a679c09444d9b
powerpc: Fix define_machine so machine_is() works from modules

machine_is() was always returning 0 when used in a module, because
we weren't exporting the machine definitions.  This was why sound
wasn't working on powermacs when CONFIG_SND_POWERMAC=m.  Original
fix from Ben Herrenschmidt, further fixed by me.

Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/machdep.h