Re: Can't find HC device for a specific USB bus in sysfs (regression)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 20, 2009 at 03:04:00PM +0100, David Vrabel wrote:
> ---
> usb: add "hcd" symlink to root hub device
> 
> Add a symlink to the hcd device from the root hub device.  This is
> needed to obtain the WUSB CHID (in the HCD's wusb_chid file) to use
> for a device attached to that root hub.

The patch is line-wrapped, and the error handling is incorrect :(

> Signed-off-by: David Vrabel <david.vrabel@xxxxxxx>
> ---
> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
> index 95ccfa0..378056e 100644
> --- a/drivers/usb/core/hcd.c
> +++ b/drivers/usb/core/hcd.c
> @@ -2118,10 +2118,16 @@ int usb_add_hcd(struct usb_hcd *hcd,
>  		       retval);
>  		goto error_create_attr_group;
>  	}
> +	retval = sysfs_create_link(&rhdev->dev.kobj,
> &hcd->self.controller->kobj, "hcd");

Doesn't this just point to the parent?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux