Skip to content

Commit

Permalink
libertas_usb: use USB interface as parent device
Browse files Browse the repository at this point in the history
Currently, "udevadm info -a -p /sys/class/net/wlan0" doesn't mention
the usb8xxx or libertas driver anywhere. This makes writing udev rules
a bit uncomfortable.

Using the USB interface as the parent device corrects the hierarchy.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Daniel Drake authored and John W. Linville committed Aug 8, 2011
1 parent 49fee69 commit 8e92f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static int if_usb_probe(struct usb_interface *intf,
}
kparam_unblock_sysfs_write(fw_name);

if (!(priv = lbs_add_card(cardp, &udev->dev)))
if (!(priv = lbs_add_card(cardp, &intf->dev)))
goto err_prog_firmware;

cardp->priv = priv;
Expand Down

0 comments on commit 8e92f2a

Please sign in to comment.