From: Masakazu Mokuno Date: Fri, 22 Feb 2008 07:45:26 +0000 (+0900) Subject: PS3: gelic: Link the wireless net_device structure to the corresponding device structure X-Git-Tag: v2.6.25-rc4~148^2~27^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4b74850dc3fb8a0941dde0f1bf7686803d1250cd;p=linux-2.6-omap-h63xx.git PS3: gelic: Link the wireless net_device structure to the corresponding device structure 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 Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index 750d2a99cb4..daf5abab953 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c @@ -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 */