Re: [RFC PATCH 1/5] usb: Register usb port's acpi power resources

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

 



On Fri, 9 Nov 2012, Lan Tianyu wrote:

> This patch is to register usb port's acpi power resources. Create
> link between usb port device and its acpi power resource.

> +int usb_acpi_unregister_power_resources(struct usb_device *udev)
> +{
> +	acpi_handle port_handle = DEVICE_ACPI_HANDLE(&udev->dev);
> +
> +	if (!port_handle)
> +		return -ENODEV;
> +
> +	acpi_power_resource_register_device(&udev->dev, port_handle);

Don't you want to _un_-register the resource here?

Alan Stern

--
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