USB: host: ohci-at91: move at91_usbh_data definition in c file
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 10 Aug 2015 14:23:09 +0000 (16:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Aug 2015 23:57:43 +0000 (16:57 -0700)
Move struct at91_usbh_data back in ohci-at91.c as this is the only user
left after switching all at91 platforms to DT only.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c
include/linux/platform_data/atmel.h

index 15df00cceed91efe1cffe340e60eefa87d092828..72dc4f9e2a0fdc6eeac4c4548ca477a7a24ff4bb 100644 (file)
 #define hcd_to_ohci_at91_priv(h) \
        ((struct ohci_at91_priv *)hcd_to_ohci(h)->priv)
 
+#define AT91_MAX_USBH_PORTS    3
+struct at91_usbh_data {
+       int vbus_pin[AT91_MAX_USBH_PORTS];      /* port power-control pin */
+       int overcurrent_pin[AT91_MAX_USBH_PORTS];
+       u8 ports;                               /* number of ports on root hub */
+       u8 overcurrent_supported;
+       u8 vbus_pin_active_low[AT91_MAX_USBH_PORTS];
+       u8 overcurrent_status[AT91_MAX_USBH_PORTS];
+       u8 overcurrent_changed[AT91_MAX_USBH_PORTS];
+};
+
 struct ohci_at91_priv {
        struct clk *iclk;
        struct clk *fclk;
index 4b452c6a2f7be58b65214c3c6b6002e00d23bacd..527a85c6192443a50ca8846f24fe40d7e726eca9 100644 (file)
@@ -46,18 +46,6 @@ struct at91_cf_data {
 #define AT91_IDE_SWAP_A0_A2    0x02
 };
 
- /* USB Host */
-#define AT91_MAX_USBH_PORTS    3
-struct at91_usbh_data {
-       int             vbus_pin[AT91_MAX_USBH_PORTS];  /* port power-control pin */
-       int             overcurrent_pin[AT91_MAX_USBH_PORTS];
-       u8              ports;                          /* number of ports on root hub */
-       u8              overcurrent_supported;
-       u8              vbus_pin_active_low[AT91_MAX_USBH_PORTS];
-       u8              overcurrent_status[AT91_MAX_USBH_PORTS];
-       u8              overcurrent_changed[AT91_MAX_USBH_PORTS];
-};
-
  /* NAND / SmartMedia */
 struct atmel_nand_data {
        int             enable_pin;             /* chip enable */