netdev
[Top] [All Lists]

[PATCH 2.6.11-rc2] wireless: Make Atmel driver use SET_NETDEV_DEV

To: netdev@xxxxxxxxxxx
Subject: [PATCH 2.6.11-rc2] wireless: Make Atmel driver use SET_NETDEV_DEV
From: Dan Williams <dcbw@xxxxxxxxxx>
Date: Wed, 02 Feb 2005 10:16:55 -0500
Cc: jgarzik@xxxxxxxxxx, simon@xxxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
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@xxxxxxxxxx>

--- 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;



<Prev in Thread] Current Thread [Next in Thread>