From: Sean Anderson Date: Mon, 5 Oct 2020 01:39:55 +0000 (-0400) Subject: usb: musb-new: mt85xx: Fix not calling dev_err with a device X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0b4826a9a8bb668782823ecc3adade4f8678f015;p=u-boot.git usb: musb-new: mt85xx: Fix not calling dev_err with a device This driver doesn't use DM (in the correct places), so we use a device and not a udevice. We also need to include device_compat.h Signed-off-by: Sean Anderson --- diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c index c281c38a28..8f0561eeba 100644 --- a/drivers/usb/musb-new/mt85xx.c +++ b/drivers/usb/musb-new/mt85xx.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -244,17 +245,17 @@ static int mtk_musb_init(struct musb *musb) ret = clk_enable(&glue->usbpllclk); if (ret) { - dev_err(dev, "failed to enable usbpll clock\n"); + dev_err(musb->controller, "failed to enable usbpll clock\n"); return ret; } ret = clk_enable(&glue->usbmcuclk); if (ret) { - dev_err(dev, "failed to enable usbmcu clock\n"); + dev_err(musb->controller, "failed to enable usbmcu clock\n"); return ret; } ret = clk_enable(&glue->usbclk); if (ret) { - dev_err(dev, "failed to enable usb clock\n"); + dev_err(musb->controller, "failed to enable usb clock\n"); return ret; }