]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PS3: gelic: Link the wireless net_device structure to the corresponding device structure
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Fri, 22 Feb 2008 07:45:26 +0000 (16:45 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Feb 2008 14:13:09 +0000 (09:13 -0500)
Link the net_device structure of the wireless part to the
corresponding device structure.

Without this, the sysfs node for this net_device would not have
'device' link.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/ps3_gelic_wireless.c

index 750d2a99cb4fd2ca4591091b8645ded4d8a1fc67..daf5abab9534a7e371a872252a0cdfa86c1b1b68 100644 (file)
@@ -2690,6 +2690,7 @@ int gelic_wl_driver_probe(struct gelic_card *card)
                return -ENOMEM;
 
        /* setup net_device structure */
+       SET_NETDEV_DEV(netdev, &card->dev->core);
        gelic_wl_setup_netdev_ops(netdev);
 
        /* setup some of net_device and register it */