diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2013-11-26 17:08:58 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-26 17:58:17 +0100 |
commit | d49dd788840ff802421ed7412e967b659fe9ca58 (patch) | |
tree | 06d51a6e7008235e970eebb27b2d4fb57429e559 /drivers | |
parent | usb: phy: fsm: don't depend on indirect includes (diff) | |
download | linux-d49dd788840ff802421ed7412e967b659fe9ca58.tar.xz linux-d49dd788840ff802421ed7412e967b659fe9ca58.zip |
usb: phy: fsm: protect against multiple inclusions
if this header is included twice, we would have
redefinition build errors. Fix this.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/phy/phy-fsm-usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-fsm-usb.h b/drivers/usb/phy/phy-fsm-usb.h index 32f86a36ba50..200f4d156020 100644 --- a/drivers/usb/phy/phy-fsm-usb.h +++ b/drivers/usb/phy/phy-fsm-usb.h @@ -15,6 +15,9 @@ * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef __LINUX_USB_OTG_FSM_H +#define __LINUX_USB_OTG_FSM_H + #include <linux/spinlock.h> #include <linux/errno.h> @@ -237,3 +240,5 @@ static inline int otg_start_gadget(struct otg_fsm *fsm, int on) } int otg_statemachine(struct otg_fsm *fsm); + +#endif /* __LINUX_USB_OTG_FSM_H */ |