[PATCH 05/13 v2] ARM: ixp4xx: Drop UDC info setting function

Linus Walleij linus.walleij at linaro.org
Fri Feb 11 14:32:30 PST 2022


The IXP4xx has a callback to "set UDC info" for the USB but
nothing in the kernel is using it. Delete it.

Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
ChangeLog v1->v2:
- No changes.
---
 arch/arm/mach-ixp4xx/common.c           | 11 -----------
 arch/arm/mach-ixp4xx/include/mach/udc.h |  8 --------
 2 files changed, 19 deletions(-)
 delete mode 100644 arch/arm/mach-ixp4xx/include/mach/udc.h

diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c
index 1116bd2df687..5192cf621f5b 100644
--- a/arch/arm/mach-ixp4xx/common.c
+++ b/arch/arm/mach-ixp4xx/common.c
@@ -31,7 +31,6 @@
 #include <linux/irqchip/irq-ixp4xx.h>
 #include <linux/platform_data/timer-ixp4xx.h>
 #include <linux/dma-map-ops.h>
-#include <mach/udc.h>
 #include <mach/hardware.h>
 #include <linux/uaccess.h>
 #include <asm/page.h>
@@ -113,13 +112,6 @@ void __init ixp4xx_timer_init(void)
 				  IXP4XX_TIMER_FREQ);
 }
 
-static struct pxa2xx_udc_mach_info ixp4xx_udc_info;
-
-void __init ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info)
-{
-	memcpy(&ixp4xx_udc_info, info, sizeof *info);
-}
-
 static struct resource ixp4xx_udc_resources[] = {
 	[0] = {
 		.start  = 0xc800b000,
@@ -160,9 +152,6 @@ static struct platform_device ixp4xx_udc_device = {
 	.id             = -1,
 	.num_resources  = 2,
 	.resource       = ixp4xx_udc_resources,
-	.dev            = {
-		.platform_data = &ixp4xx_udc_info,
-	},
 };
 
 static struct resource ixp4xx_npe_resources[] = {
diff --git a/arch/arm/mach-ixp4xx/include/mach/udc.h b/arch/arm/mach-ixp4xx/include/mach/udc.h
deleted file mode 100644
index 7bd8b96c8843..000000000000
--- a/arch/arm/mach-ixp4xx/include/mach/udc.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * arch/arm/mach-ixp4xx/include/mach/udc.h
- *
- */
-#include <linux/platform_data/pxa2xx_udc.h>
-
-extern void ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info);
-
-- 
2.34.1




More information about the linux-arm-kernel mailing list