Arnd Bergmann ae40d64b1f usb: gadget: at91_udc: call at91udc_of_init only when needed
This avoids a build error in at91sam9261_9g10_defconfig:

drivers/usb/gadget/at91_udc.c: In function 'at91udc_probe':
drivers/usb/gadget/at91_udc.c:1685:34: warning: 'flags' may be used uninitialized in this
function [-Wmaybe-uninitialized]
  board->vbus_active_low = (flags & OF_GPIO_ACTIVE_LOW) ? 1 : 0;
                                  ^
drivers/usb/gadget/at91_udc.c:1678:21: note: 'flags' was declared here
  enum of_gpio_flags flags;
                     ^

Making the call to at91udc_of_init conditinal also reduces
the object code size without sacrificing build coverage.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-07-15 12:58:11 +03:00
..
2013-04-09 14:13:03 -04:00
2013-05-05 00:16:11 -04:00
2013-05-05 00:16:11 -04:00
2012-11-21 13:27:17 -08:00
2013-05-07 18:38:29 -07:00
2013-07-02 14:33:21 -07:00
2013-04-05 15:18:00 -07:00
2013-04-05 15:18:00 -07:00
2013-02-22 23:31:31 -05:00
2013-04-05 15:18:00 -07:00