Re: [RFC 09/17] usb/ehci: add generic hcd add function

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

 



Hello.

On 29-08-2011 1:21, Sebastian Andrzej Siewior wrote:

This generic add function could be used by platform drivers.

Signed-off-by: Sebastian Andrzej Siewior<sebastian@xxxxxxxxxxxxx>
[...]

diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 35fc8ce..bde996d 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -789,6 +789,10 @@ void ehci_work(struct ehci_hcd *ehci);
  int ehci_lpm_set_da(struct ehci_hcd *ehci, int dev_addr, int port_num);
  int ehci_lpm_check(struct ehci_hcd *ehci, int port);

+struct usb_hcd *ehci_hcd_plat_add(struct platform_device *pdev,
+		const struct hc_driver *hc_drv);
+void ehci_hcd_plat_cleanup(struct platform_device *pdev, struct usb_hcd *hcd);

   "Remove" pairs with "add", so why not ehci_hcd_plat_remove()?

WBR, Sergei
--
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