]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: fix build warnings
authorFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 19:22:18 +0000 (14:22 -0500)
committerMarek Vasut <marex@denx.de>
Sun, 6 Dec 2015 23:14:59 +0000 (00:14 +0100)
commitc2ad4e1b9f965d4ee4a5630216ba4123a77e1784
treea22a0e608049c7084861cb0f8a3070181d8a4006
parent9dc522249a2b5aa59bcb2f022ce5844434ac81bc
usb: dwc3: fix build warnings

fix the following build warnings:

drivers/usb/dwc3/core.c: In function ‘dwc3_uboot_init’:
drivers/usb/dwc3/core.c:625:6: warning: ‘dev’ is used uninitialized in this function [-Wuninitialized]
mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIGN_MASK, GFP_KERNEL);
        ^
drivers/usb/dwc3/dwc3-omap.c: In function ‘dwc3_omap_uboot_init’:
drivers/usb/dwc3/dwc3-omap.c:380:7: warning: ‘dev’ is used uninitialized in this function [-Wuninitialized]
omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL);

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/dwc3-omap.c