usb: ehci-mx6: Use common code to extract dr_mode
authorAdam Ford <aford173@gmail.com>
Wed, 3 Apr 2019 13:41:56 +0000 (08:41 -0500)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 11:11:45 +0000 (13:11 +0200)
commit69535b33bc1fce43dcc10b646cf44db81cffa131
tree5f96e7303ebf58f5face8d08e57e65436c818f77
parent51f60a89b75e5b71c747e15b8247abae798244ec
usb: ehci-mx6: Use common code to extract dr_mode

There exists code in drivers/common/common.c to read the dr_mode
from the device tree.  This patch converts this driver to use that
function to initialize the driver.

Signed-off-by: Adam Ford <aford173@gmail.com>
drivers/usb/host/ehci-mx6.c