summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/dummy_hcd.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-06-19 15:27:27 +0400
committerFelipe Balbi <balbi@ti.com>2013-07-15 13:58:11 +0400
commitae40d64b1f2db93d7b092e6425a2f716289fbd09 (patch)
tree4857769864668f010b555eb3ce578287a59313e1 /drivers/usb/gadget/dummy_hcd.c
parentcdcedd6981194e511cc206887db661d016069d68 (diff)
downloadlinux-ae40d64b1f2db93d7b092e6425a2f716289fbd09.tar.xz
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>
Diffstat (limited to 'drivers/usb/gadget/dummy_hcd.c')
0 files changed, 0 insertions, 0 deletions