public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] via-rhine for 2.5.5
@ 2002-02-21  9:59 Stephane Casset
  2002-02-21 10:18 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Casset @ 2002-02-21  9:59 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel


Hi,

It seems that the following patch is necessary for via-rhine to compile.

--- drivers/net/via-rhine.c.orig	Thu Feb 21 10:49:54 2002
+++ drivers/net/via-rhine.c	Thu Feb 21 10:55:39 2002
@@ -1754,7 +1754,7 @@
 	name:		"via-rhine",
 	id_table:	via_rhine_pci_tbl,
 	probe:		via_rhine_init_one,
-	remove:		via_rhine_remove_one,
+	remove:		__devexit_p(via_rhine_remove_one),
 };
 
 
@@ -1768,7 +1768,7 @@
 }
 
 
-static void __exit via_rhine_cleanup (void)
+static void __devexit via_rhine_cleanup (void)
 {
 	pci_unregister_driver (&via_rhine_driver);
 }


Regards
-- 
Stéphane Casset           LOGIDÉE sàrl          Se faire plaisir d'apprendre
3, quai Kléber, Tour Sébastopol   Tel : +33 388 23 69 77  casset@logidee.com
F-67080 STRASBOURG Cedex 3        Fax : +33 388 23 70 00  http://logidee.com

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

* Re: [PATCH] via-rhine for 2.5.5
  2002-02-21  9:59 [PATCH] via-rhine for 2.5.5 Stephane Casset
@ 2002-02-21 10:18 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2002-02-21 10:18 UTC (permalink / raw)
  To: Stephane Casset; +Cc: linux-kernel

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

Stephane Casset wrote:
> --- drivers/net/via-rhine.c.orig        Thu Feb 21 10:49:54 2002
> +++ drivers/net/via-rhine.c     Thu Feb 21 10:55:39 2002
> @@ -1754,7 +1754,7 @@
> -       remove:         via_rhine_remove_one,
> +       remove:         __devexit_p(via_rhine_remove_one),

this is ok

> -static void __exit via_rhine_cleanup (void)
> +static void __devexit via_rhine_cleanup (void)

this is definitely wrong

I'm also surprised you managed to compile via-rhine without the attached
patch, which is needed to fix the build.

	Jeff



-- 
Jeff Garzik      | "Why is it that attractive girls like you
Building 1024    |  always seem to have a boyfriend?"
MandrakeSoft     | "Because I'm a nympho that owns a brewery?"
                 |             - BBC TV show "Coupling"

[-- Attachment #2: via-rhine-2.5.5.patch --]
[-- Type: text/plain, Size: 553 bytes --]

diff -Nru a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c
--- a/drivers/net/via-rhine.c	Thu Feb 21 05:17:43 2002
+++ b/drivers/net/via-rhine.c	Thu Feb 21 05:17:43 2002
@@ -321,6 +321,7 @@
 	VT86C100A = 0,
 	VT6102,
 	VT3043,
+	VT6105,
 };
 
 struct via_rhine_chip_info {
@@ -349,7 +350,7 @@
 	{ "VIA VT6102 Rhine-II", RHINE_IOTYPE, 256,
 	  CanHaveMII | HasWOL },
 	{ "VIA VT3043 Rhine",    RHINE_IOTYPE, 128,
-	  CanHaveMII | ReqTxAlign }
+	  CanHaveMII | ReqTxAlign },
 	{ "VIA VT6105 Rhine-III", RHINE_IOTYPE, 256,
 	  CanHaveMII | HasWOL },
 };

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

end of thread, other threads:[~2002-02-21 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-21  9:59 [PATCH] via-rhine for 2.5.5 Stephane Casset
2002-02-21 10:18 ` Jeff Garzik

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