Thread (1 message) 1 message, 1 author, 2000-12-12

Re: Mac/m68k patches?

From: Jes Sorensen <hidden>
Date: 2000-12-12 18:11:47

quoted
quoted
quoted
quoted
"Geert" == Geert Uytterhoeven [off-list ref] 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?
quoted hunk
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help