diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-21 05:23:44 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-11-16 06:35:30 -0500 |
commit | 46000065a631c6d21452d533baf086175c384ba4 (patch) | |
tree | 064b6b85282820e8669a6b5df86869f4989f34b8 | |
parent | 6920b5a791bbb54810159fbf6acf2c6ae14cdd22 (diff) |
ARM: move udc_pxa2xx.h to linux/platform_data
Move the PXA2xx/IXP4xx UDC header file into linux/platform_data as it
only contains a driver platform data structure.
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/udc.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/udc.h | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/pxa25x_udc.c | 4 | ||||
-rw-r--r-- | include/linux/platform_data/pxa2xx_udc.h (renamed from arch/arm/include/asm/mach/udc_pxa2xx.h) | 5 |
4 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/udc.h b/arch/arm/mach-ixp4xx/include/mach/udc.h index 80d6da2eafa..7bd8b96c884 100644 --- a/arch/arm/mach-ixp4xx/include/mach/udc.h +++ b/arch/arm/mach-ixp4xx/include/mach/udc.h | |||
@@ -2,7 +2,7 @@ | |||
2 | * arch/arm/mach-ixp4xx/include/mach/udc.h | 2 | * arch/arm/mach-ixp4xx/include/mach/udc.h |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | #include <asm/mach/udc_pxa2xx.h> | 5 | #include <linux/platform_data/pxa2xx_udc.h> |
6 | 6 | ||
7 | extern void ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info); | 7 | extern void ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info); |
8 | 8 | ||
diff --git a/arch/arm/mach-pxa/include/mach/udc.h b/arch/arm/mach-pxa/include/mach/udc.h index 2f82332e81a..9a827e32db9 100644 --- a/arch/arm/mach-pxa/include/mach/udc.h +++ b/arch/arm/mach-pxa/include/mach/udc.h | |||
@@ -2,7 +2,7 @@ | |||
2 | * arch/arm/mach-pxa/include/mach/udc.h | 2 | * arch/arm/mach-pxa/include/mach/udc.h |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | #include <asm/mach/udc_pxa2xx.h> | 5 | #include <linux/platform_data/pxa2xx_udc.h> |
6 | 6 | ||
7 | extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info); | 7 | extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info); |
8 | 8 | ||
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index 8efbf08c356..d4ca9f1f7f2 100644 --- a/drivers/usb/gadget/pxa25x_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/list.h> | 29 | #include <linux/list.h> |
30 | #include <linux/interrupt.h> | 30 | #include <linux/interrupt.h> |
31 | #include <linux/mm.h> | 31 | #include <linux/mm.h> |
32 | #include <linux/platform_data/pxa2xx_udc.h> | ||
32 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
33 | #include <linux/dma-mapping.h> | 34 | #include <linux/dma-mapping.h> |
34 | #include <linux/irq.h> | 35 | #include <linux/irq.h> |
@@ -59,9 +60,6 @@ | |||
59 | #include <mach/lubbock.h> | 60 | #include <mach/lubbock.h> |
60 | #endif | 61 | #endif |
61 | 62 | ||
62 | #include <asm/mach/udc_pxa2xx.h> | ||
63 | |||
64 | |||
65 | /* | 63 | /* |
66 | * This driver handles the USB Device Controller (UDC) in Intel's PXA 25x | 64 | * This driver handles the USB Device Controller (UDC) in Intel's PXA 25x |
67 | * series processors. The UDC for the IXP 4xx series is very similar. | 65 | * series processors. The UDC for the IXP 4xx series is very similar. |
diff --git a/arch/arm/include/asm/mach/udc_pxa2xx.h b/include/linux/platform_data/pxa2xx_udc.h index ea297ac70bc..c6c5e98b5b8 100644 --- a/arch/arm/include/asm/mach/udc_pxa2xx.h +++ b/include/linux/platform_data/pxa2xx_udc.h | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/include/asm/mach/udc_pxa2xx.h | ||
3 | * | ||
4 | * This supports machine-specific differences in how the PXA2xx | 2 | * This supports machine-specific differences in how the PXA2xx |
5 | * USB Device Controller (UDC) is wired. | 3 | * USB Device Controller (UDC) is wired. |
6 | * | 4 | * |
@@ -8,6 +6,8 @@ | |||
8 | * linux/arch/mach-ixp4xx/<machine>.c and used in | 6 | * linux/arch/mach-ixp4xx/<machine>.c and used in |
9 | * the probe routine of linux/drivers/usb/gadget/pxa2xx_udc.c | 7 | * the probe routine of linux/drivers/usb/gadget/pxa2xx_udc.c |
10 | */ | 8 | */ |
9 | #ifndef PXA2XX_UDC_H | ||
10 | #define PXA2XX_UDC_H | ||
11 | 11 | ||
12 | struct pxa2xx_udc_mach_info { | 12 | struct pxa2xx_udc_mach_info { |
13 | int (*udc_is_connected)(void); /* do we see host? */ | 13 | int (*udc_is_connected)(void); /* do we see host? */ |
@@ -24,3 +24,4 @@ struct pxa2xx_udc_mach_info { | |||
24 | int gpio_pullup; /* high == pullup activated */ | 24 | int gpio_pullup; /* high == pullup activated */ |
25 | }; | 25 | }; |
26 | 26 | ||
27 | #endif | ||