Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: ixp4xx: Drop UDC info setting function

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@linaro.org>
Link: https://lore.kernel.org/r/20220211223238.648934-6-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

-19
-11
arch/arm/mach-ixp4xx/common.c
··· 31 31 #include <linux/irqchip/irq-ixp4xx.h> 32 32 #include <linux/platform_data/timer-ixp4xx.h> 33 33 #include <linux/dma-map-ops.h> 34 - #include <mach/udc.h> 35 34 #include <mach/hardware.h> 36 35 #include <linux/uaccess.h> 37 36 #include <asm/page.h> ··· 112 113 IXP4XX_TIMER_FREQ); 113 114 } 114 115 115 - static struct pxa2xx_udc_mach_info ixp4xx_udc_info; 116 - 117 - void __init ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info) 118 - { 119 - memcpy(&ixp4xx_udc_info, info, sizeof *info); 120 - } 121 - 122 116 static struct resource ixp4xx_udc_resources[] = { 123 117 [0] = { 124 118 .start = 0xc800b000, ··· 152 160 .id = -1, 153 161 .num_resources = 2, 154 162 .resource = ixp4xx_udc_resources, 155 - .dev = { 156 - .platform_data = &ixp4xx_udc_info, 157 - }, 158 163 }; 159 164 160 165 static struct resource ixp4xx_npe_resources[] = {
-8
arch/arm/mach-ixp4xx/include/mach/udc.h
··· 1 - /* 2 - * arch/arm/mach-ixp4xx/include/mach/udc.h 3 - * 4 - */ 5 - #include <linux/platform_data/pxa2xx_udc.h> 6 - 7 - extern void ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info); 8 -