From f7a7a63e549a7205d54993d04a89e6232e88970f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:36:55 +0100 Subject: usb: musb: Add missing includes phy-am335x.c and phy-am335x-control.c both implement functions that they do not include the header file providing the prototype for. Add the missing include and remove the duplicate definition of struct phy_control. Signed-off-by: Sascha Hauer --- drivers/usb/musb/phy-am335x-control.c | 5 +---- drivers/usb/musb/phy-am335x.c | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'drivers/usb/musb') diff --git a/drivers/usb/musb/phy-am335x-control.c b/drivers/usb/musb/phy-am335x-control.c index 55a2ed27b7..c84525ec7e 100644 --- a/drivers/usb/musb/phy-am335x-control.c +++ b/drivers/usb/musb/phy-am335x-control.c @@ -4,10 +4,7 @@ #include #include -struct phy_control { - void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on); - void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on); -}; +#include "am35x-phy-control.h" struct am335x_control_usb { struct device_d *dev; diff --git a/drivers/usb/musb/phy-am335x.c b/drivers/usb/musb/phy-am335x.c index ec8c0f538b..df31255d89 100644 --- a/drivers/usb/musb/phy-am335x.c +++ b/drivers/usb/musb/phy-am335x.c @@ -5,6 +5,7 @@ #include #include "am35x-phy-control.h" #include "musb_core.h" +#include "phy-am335x.h" struct am335x_usbphy { void __iomem *base; -- cgit v1.2.3