All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] usb: storage: error: ‘struct usb_device’ has no member named ‘dev’
Date: Mon, 23 Oct 2017 17:39:52 -0400	[thread overview]
Message-ID: <20171023213952.GE22919@bill-the-cat> (raw)
In-Reply-To: <b85298a6-81ca-29fa-d9a1-aad42a59947c@gmx.de>

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>

      reply	other threads:[~2017-10-23 21:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-23 21:26 [U-Boot] usb: storage: error: ‘struct usb_device’ has no member named ‘dev’ Heinrich Schuchardt
2017-10-23 21:39 ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171023213952.GE22919@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.