]> git.sur5r.net Git - u-boot/commitdiff
at91_udc.c: Fix unused variable warning
authorTom Rini <trini@konsulko.com>
Wed, 19 Apr 2017 02:23:51 +0000 (22:23 -0400)
committerLukasz Majewski <lukma@denx.de>
Sun, 18 Jun 2017 19:11:10 +0000 (21:11 +0200)
With gcc-6 and later we see warnings that at91sam9263_udc_caps and
at91rm9200_udc_caps are unused.

Fixes: 620197670a69 ("usb: gadget: at91_udc: add at91_udc into U-Boot")
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/usb/gadget/at91_udc.c

index f5bc277fa6e0da4b82660f6c42b2c3ab60a8025d..01a59078b84a532dba73bf7214aa57452b0d1acf 100644 (file)
@@ -1386,11 +1386,6 @@ static void at91rm9200_udc_pullup(struct at91_udc *udc, int is_on)
                gpio_set_value(udc->board.pullup_pin, !active);
 }
 
-static const struct at91_udc_caps at91rm9200_udc_caps = {
-       .init = at91rm9200_udc_init,
-       .pullup = at91rm9200_udc_pullup,
-};
-
 static int at91sam9260_udc_init(struct at91_udc *udc)
 {
        struct at91_ep *ep;
@@ -1503,11 +1498,6 @@ static int at91sam9263_udc_init(struct at91_udc *udc)
        return 0;
 }
 
-static const struct at91_udc_caps at91sam9263_udc_caps = {
-       .init = at91sam9263_udc_init,
-       .pullup = at91sam9260_udc_pullup,
-};
-
 int usb_gadget_handle_interrupts(int index)
 {
        struct at91_udc *udc = controller;