diff options
| author | Ivan T. Ivanov <iivanov@mm-sol.com> | 2013-12-30 16:15:27 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2014-01-09 03:06:48 -0500 |
| commit | 5146d7714302f0b5dff7c591c6de947067669ca3 (patch) | |
| tree | 2ef0b29f1bae62ecb13a4064117f2492fb24435d /include/linux/usb | |
| parent | 21dea66951342ec514ad498eda843cf633a13634 (diff) | |
usb: phy: msm: Move mach dependent code to platform data
This patch fix compilation error when driver is compiled
in multi-platform builds.
drivers/built-in.o: In function `msm_otg_link_clk_reset':
./drivers/usb/phy/phy-msm-usb.c:314: undefined reference to `clk_reset'
./drivers/usb/phy/phy-msm-usb.c:318: undefined reference to `clk_reset'
Use platform data supplied reset handlers and adjust error
messages reported when reset sequence fail.
This is an intermediate step before adding support for reset
framework and newer targets.
Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/msm_hsusb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h index 22a396c13f3a..32754835a39b 100644 --- a/include/linux/usb/msm_hsusb.h +++ b/include/linux/usb/msm_hsusb.h | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | #include <linux/types.h> | 21 | #include <linux/types.h> |
| 22 | #include <linux/usb/otg.h> | 22 | #include <linux/usb/otg.h> |
| 23 | #include <linux/clk.h> | ||
| 23 | 24 | ||
| 24 | /** | 25 | /** |
| 25 | * Supported USB modes | 26 | * Supported USB modes |
| @@ -135,6 +136,8 @@ struct msm_otg_platform_data { | |||
| 135 | enum msm_usb_phy_type phy_type; | 136 | enum msm_usb_phy_type phy_type; |
| 136 | void (*setup_gpio)(enum usb_otg_state state); | 137 | void (*setup_gpio)(enum usb_otg_state state); |
| 137 | char *pclk_src_name; | 138 | char *pclk_src_name; |
| 139 | int (*link_clk_reset)(struct clk *link_clk, bool assert); | ||
| 140 | int (*phy_clk_reset)(struct clk *phy_clk); | ||
| 138 | }; | 141 | }; |
| 139 | 142 | ||
| 140 | /** | 143 | /** |
