public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.5-acX, airo_cs
@ 2001-06-30 20:47 PALFFY Daniel
  2001-07-01  0:00 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: PALFFY Daniel @ 2001-06-30 20:47 UTC (permalink / raw)
  To: Jeff Garzik, Alan Cox, linux-kernel


Hi!

A small patch to airo.c to allow the module to load even if no pci or isa
cards are found, because airo_cs needs the airo module to load.

--- linux/drivers/net/wireless/airo.c~	Sat Jun 30 22:37:10 2001
+++ linux/drivers/net/wireless/airo.c	Sat Jun 30 22:37:33 2001
@@ -2988,9 +2988,7 @@
 	 * fails with an error other than -ENODEV, instead of proceeding,
 	 * if ISA devs are present.
 	 */
-	if (have_isa_dev)
-		return 0;
-	return rc;
+	return 0;
 }
 
 static void __exit airo_cleanup_module( void )


--
Dani
			...and Linux for all.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.4.5-acX, airo_cs
  2001-06-30 20:47 2.4.5-acX, airo_cs PALFFY Daniel
@ 2001-07-01  0:00 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2001-07-01  0:00 UTC (permalink / raw)
  To: PALFFY Daniel; +Cc: Alan Cox, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

PALFFY Daniel wrote:
> --- linux/drivers/net/wireless/airo.c~  Sat Jun 30 22:37:10 2001
> +++ linux/drivers/net/wireless/airo.c   Sat Jun 30 22:37:33 2001
> @@ -2988,9 +2988,7 @@
>          * fails with an error other than -ENODEV, instead of proceeding,
>          * if ISA devs are present.
>          */
> -       if (have_isa_dev)
> -               return 0;
> -       return rc;
> +       return 0;
>  }

Thanks, I applied this patch manually, with a comment as well.  Here is
what I have (attached).

-- 
Jeff Garzik      | Andre the Giant has a posse.
Building 1024    |
MandrakeSoft     |

[-- Attachment #2: airo.patch --]
[-- Type: text/plain, Size: 797 bytes --]

Index: drivers/net/wireless/airo.c
===================================================================
RCS file: /cvsroot/gkernel/linux_2_4/drivers/net/wireless/Attic/airo.c,v
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 airo.c
--- drivers/net/wireless/airo.c	2001/06/30 05:24:30	1.1.1.9
+++ drivers/net/wireless/airo.c	2001/06/30 23:59:28
@@ -2984,14 +2984,9 @@
 	printk( KERN_INFO "airo:  Finished probing for PCI adapters\n" );
 #endif
 
-	/* arguably, we should clean up and error exit if pci_module_init
-	 * fails with an error other than -ENODEV, instead of proceeding,
-	 * if ISA devs are present.
+	/* Always exit with success, as we are a library module
+	 * as well as a driver module
 	 */
-	if (have_isa_dev)
-		return 0;
-	if (rc && (rc != -ENODEV))
-		return rc;
 	return 0;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-30 20:47 2.4.5-acX, airo_cs PALFFY Daniel
2001-07-01  0:00 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox