Skip to contentSkip to conversation

ppc32: Add platform data definition used by ohci-ppc-soc.c

PATCH New Dale Farnsworth 1 participant 1 message Mar 31, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Add platform data definition used by ohci-ppc-soc.c

This structure allows for callbacks into platform-specific code when the driver is started or stopped. This file is currently included by drivers/usb/host/ohci-ppc-soc.c, so it's needed for USB on the stb04xxx, mpc52xx, and 440EP.

include/asm-ppc/usb.h new file +13 -0
Index: linux-2.5-usb-405/include/asm-ppc/usb.h
===================================================================
@@ -0,0 +1,13 @@
+/*
+ * ppc/usb.h:
+ *
+ */
+#ifndef _PPC_USB_H
+#define _PPC_USB_H
+
+struct usb_hcd_platform_data {
+	int (*start) (struct platform_device *pdev);
+	void (*stop) (struct platform_device *pdev);
+};
+
+#endif /* !(_PPC_USB_H) */