* [PATCH] PS3: gelic: Link the wireless net_device structure to the corresponding device structure
@ 2008-02-22 7:45 Masakazu Mokuno
2008-02-22 14:11 ` Dan Williams
0 siblings, 1 reply; 2+ messages in thread
From: Masakazu Mokuno @ 2008-02-22 7:45 UTC (permalink / raw)
To: linux-wireless
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>
---
drivers/net/ps3_gelic_wireless.c | 1 +
1 file changed, 1 insertion(+)
--- 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_c
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 */
--
Masakazu MOKUNO
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PS3: gelic: Link the wireless net_device structure to the corresponding device structure
2008-02-22 7:45 [PATCH] PS3: gelic: Link the wireless net_device structure to the corresponding device structure Masakazu Mokuno
@ 2008-02-22 14:11 ` Dan Williams
0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2008-02-22 14:11 UTC (permalink / raw)
To: Masakazu Mokuno; +Cc: linux-wireless
On Fri, 2008-02-22 at 16:45 +0900, Masakazu Mokuno wrote:
> 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>
Hmm; I must have missed this in the review. But it does need to be
there, good catch.
Acked-by: Dan Williams <dcbw@redhat.com>
> ---
> drivers/net/ps3_gelic_wireless.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- 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_c
> 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 */
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-22 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22 7:45 [PATCH] PS3: gelic: Link the wireless net_device structure to the corresponding device structure Masakazu Mokuno
2008-02-22 14:11 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox