netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.11-rc2] wireless: Make Atmel driver use SET_NETDEV_DEV
@ 2005-02-01 21:42 Dan Williams
  2005-02-02  1:33 ` Jeff Garzik
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Williams @ 2005-02-01 21:42 UTC (permalink / raw)
  To: netdev; +Cc: jgarzik, simon

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

Make the Atmel wireless driver use SET_NETDEV_DEV to get the correct
entries in sysfs.  Seems like somebody meant to do this but it got lost.
atmel_cs.c was previously fixed to pass in the correct struct device *
via handle_to_dev() but the driver never actually used it.

Signed-off-by: Dan Williams <dcbw@redhat.com>

--- a/drivers/net/wireless/atmel.c	2005-01-27 20:26:46.000000000 -0500
+++ b/drivers/net/wireless/atmel.c	2005-02-01 16:15:55.000000000 -0500
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 	
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;


[-- Attachment #2: atmel-NETDEV-fix.patch --]
[-- Type: text/x-patch, Size: 436 bytes --]

--- a/drivers/net/wireless/atmel.c	2005-01-27 20:26:46.000000000 -0500
+++ b/drivers/net/wireless/atmel.c	2005-02-01 16:15:55.000000000 -0500
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 	
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 2.6.11-rc2] wireless: Make Atmel driver use SET_NETDEV_DEV
@ 2005-02-02 15:16 Dan Williams
  2005-02-26  9:11 ` Jeff Garzik
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Williams @ 2005-02-02 15:16 UTC (permalink / raw)
  To: netdev; +Cc: jgarzik, simon

Make the Atmel wireless driver use SET_NETDEV_DEV to get the correct
entries in sysfs.  Seems like somebody meant to do this but it got lost.
atmel_cs.c was previously fixed to pass in the correct struct device *
via handle_to_dev() but the driver never actually used it.

Signed-off-by: Dan Williams <dcbw@redhat.com>

--- a/drivers/net/wireless/atmel.c	2005-01-27 20:26:46.000000000 -0500
+++ b/drivers/net/wireless/atmel.c	2005-02-01 16:15:55.000000000 -0500
@@ -1579,6 +1579,8 @@
 	dev->irq = irq;
 	dev->base_addr = port;
 	
+	SET_NETDEV_DEV(dev, sys_dev);
+	
 	if ((rc = request_irq(dev->irq, service_interrupt, SA_SHIRQ, dev->name, dev))) {
 		printk(KERN_ERR "%s: register interrupt %d failed, rc %d\n", dev->name, irq, rc );
 		goto err_out_free;

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

end of thread, other threads:[~2005-02-26  9:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01 21:42 [PATCH 2.6.11-rc2] wireless: Make Atmel driver use SET_NETDEV_DEV Dan Williams
2005-02-02  1:33 ` Jeff Garzik
2005-02-02  1:41   ` Dan Williams
2005-02-02  1:52     ` Jeff Garzik
2005-02-02  9:38       ` Christoph Hellwig
2005-02-02  9:59         ` Jeff Garzik
2005-02-02  2:57     ` David Dillow
  -- strict thread matches above, loose matches on Subject: below --
2005-02-02 15:16 Dan Williams
2005-02-26  9:11 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).