Commit eb7d28b6 authored by Dan Williams's avatar Dan Williams Committed by Jeff Garzik

[PATCH] wireless: Make Atmel driver use SET_NETDEV_DEV

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: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent d0943bfc
......@@ -1599,6 +1599,8 @@ struct net_device *init_atmel_card( unsigned short irq, int port, const AtmelFWT
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment