]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: musb-new: omap2430: Fix compilation warning with USB_MUSB_GADGET
authorDerald D. Woods <woods.technical@gmail.com>
Tue, 28 May 2019 02:22:00 +0000 (21:22 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 13 Jul 2019 15:11:27 +0000 (11:11 -0400)
commit9adaa039b67a7f43e5618fcd5d4c9fc0e8f9dd68
tree9af11ed9b7ccf1a446a01dd7ae153771715cc13e
parente74e9f620a6e413cca2649b2d5e3f483187735c5
usb: musb-new: omap2430: Fix compilation warning with USB_MUSB_GADGET

This commit addresses the following warning, when _NOT_ USB_MUSB_HOST:

[...]
  CC      drivers/usb/gadget/f_mass_storage.o
  CC      drivers/usb/musb-new/omap2430.o
  CC      drivers/usb/gadget/f_fastboot.o
  CC      env/common.o
  CC      env/env.o
/src/etinker/software/u-boot-master/drivers/usb/musb-new/omap2430.c: In function ‘omap2430_musb_probe’:
/src/etinker/software/u-boot-master/drivers/usb/musb-new/omap2430.c:239:6: warning: assignment to ‘int’ from ‘struct musb *’ makes integer from pointer without a cast [-Wint-conversion]
  ret = musb_register(&platdata->plat,
      ^
  LD      drivers/usb/host/built-in.o
  CC      drivers/usb/gadget/f_sdp.o
  CC      fs/ext4/ext4fs.o
[...]

Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
drivers/usb/musb-new/omap2430.c