Hello.

On 04/09/2013 02:07 AM, Greg KH wrote:

Sometimes there is a need  to initialize some non-standard registers mapped to
the EHCI region before accessing the standard EHCI registers.  Add pre_setup()
method with 'struct usb_hcd *' parameter to be called just before ehci_setup()
to the 'ehci-platform'  driver's platform data for this purpose...

Suggested-by: Alan Stern <[email protected]>
Signed-off-by: Sergei Shtylyov <[email protected]>

[...]
Index: renesas/include/linux/usb/ehci_pdriver.h
===================================================================
--- renesas.orig/include/linux/usb/ehci_pdriver.h
+++ renesas/include/linux/usb/ehci_pdriver.h
@@ -19,6 +19,8 @@
  #ifndef __USB_CORE_EHCI_PDRIVER_H
  #define __USB_CORE_EHCI_PDRIVER_H
+#include <linux/usb/hcd.h>
This isn't needed in the .h file, right?  Only the .c file, if it hasn't
already included it (hint, I bet it has...)
    No, it hasn't. And I wouldn't want to include this header in the
platform code.
Then you don't need it in this .h file either, please remove it.

I do need it in the platform .c file. Well, long live multiple redeclarations
of the same thing!

thanks,

greg k-h

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to