[U-Boot] usb: storage: error: ‘struct usb_device’ has no member named ‘dev’

Tom Rini trini at konsulko.com
Mon Oct 23 21:39:52 UTC 2017


On Mon, Oct 23, 2017 at 11:26:31PM +0200, Heinrich Schuchardt wrote:

> The appended config leads to:
> 
> common/usb_storage.c: In function ‘usb_stor_probe_device’:
> common/usb_storage.c:208:32: error: ‘struct usb_device’ has no member
> named ‘dev’; did you mean ‘devnum’?
>   data = dev_get_platdata(udev->dev);
>                                 ^~~
>                                 devnum
> common/usb_storage.c:218:34: error: ‘struct usb_device’ has no member
> named ‘dev’; did you mean ‘devnum’?
>    ret = blk_create_devicef(udev->dev, "usb_storage_blk", str,
>                                   ^~~
>                                   devnum
> 
> It seems that a dependency on CONFIG_DM_USB is missing.

Yes, this is part of the iMX DM_MMC issue.  If you have BLK enabled (and
you want it), you need DM_USB.  But this isn't expressable today because
we don't have USB gadget DM, iirc, so it would switch some boards from
gadget to host USB.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171023/1fa5abd7/attachment.sig>


More information about the U-Boot mailing list