]> git.sur5r.net Git - u-boot/commit
usb: handle NULL table in usb_gadget_get_string
authorRob Herring <robh@kernel.org>
Fri, 18 Apr 2014 13:54:28 +0000 (08:54 -0500)
committerMarek Vasut <marex@denx.de>
Wed, 30 Apr 2014 08:30:57 +0000 (10:30 +0200)
commit52d45012ff66dee716b8dfcb7d67d3ab54a3208a
tree4c7a731a6e3eaf6321c0cae7846217fac04b54ea
parentfd2a89b20ba66d76929f672b03f392733fb1b2a6
usb: handle NULL table in usb_gadget_get_string

Allow a NULL table to be passed to usb_gadget_get_string for cases
when a string table may not be populated.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Tom Rini <trini@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/usbstring.c