Mac/m68k patches?

Jes Sorensen jes at linuxcare.com
Wed Dec 13 05:11:47 EST 2000


>>>>> "Geert" == Geert Uytterhoeven <geert at linux-m68k.org> writes:

Geert> 	Hi, I have these Mac/m68k patches in my patchqueue which
Geert> affect PowerMac as well.  Anyone who has a problem with them,
Geert> or can I send them to Linus?

>diff -urN linux-2.4.0-test12/drivers/macintosh/adbhid.c linux-m68k-2.4.0-test12/drivers/macintosh/adbhid.c
>--- linux-2.4.0-test12/drivers/macintosh/adbhid.c	Sun Sep 17 18:48:05 2000
>+++ linux-m68k-2.4.0-test12/drivers/macintosh/adbhid.c	Tue Dec 12 09:02:45 2000
>@@ -855,8 +855,10 @@
>
> static int __init adbhid_init(void)
> {
>+#ifndef CONFIG_MAC
> 	if ( (_machine != _MACH_chrp) && (_machine != _MACH_Pmac) )
> 	    return 0;
>+#endif
>
> 	led_request.complete = 1;
>

Would be nice to turn that into a macro define in inclue/asm so we can
get rid of that ugly #ifdef. Doing something like
_machine_type(<type>) that return 0 on a match and -1 for no match or
similar.

Jes

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list