]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: usb: ehci: Use a function to find the controller from struct udevice
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:25 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:24 +0000 (11:11 -0600)
commit24ed894fc05618aa38b82dc158e15d712833132b
treeb1a3e249016c00ac7634d139c2ccb28c9d7fd383
parent6a1a8162c62fcb5435495c1ddf3390a1d1967474
dm: usb: ehci: Use a function to find the controller from struct udevice

With driver model we want to remove the controller pointer in struct udevice
and use driver model data structures instead. To prepare for this, move
access to this field to a function which can provide a different
implementation for driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-hcd.c