summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:36:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-19 09:45:23 +0100
commitf7a7a63e549a7205d54993d04a89e6232e88970f (patch)
tree466337d93621413f952541261b8e6d608903eebc /drivers/usb/musb
parentcf209e10d4bf666bc796b69a3ab605e27509b9b2 (diff)
downloadbarebox-f7a7a63e549a7205d54993d04a89e6232e88970f.tar.gz
barebox-f7a7a63e549a7205d54993d04a89e6232e88970f.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/phy-am335x-control.c5
-rw-r--r--drivers/usb/musb/phy-am335x.c1
2 files changed, 2 insertions, 4 deletions
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 <linux/err.h>
#include <linux/spinlock.h>
-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 <linux/err.h>
#include "am35x-phy-control.h"
#include "musb_core.h"
+#include "phy-am335x.h"
struct am335x_usbphy {
void __iomem *base;