summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/mv_usb.h
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-12-20 09:20:21 +0400
committerFelipe Balbi <balbi@ti.com>2011-12-20 14:55:06 +0400
commit5e6c86b017691230b6b47f19b7d5449997e8a0b8 (patch)
tree5cf062ef4e2cc910489a03c210188b663e69b7b7 /include/linux/platform_data/mv_usb.h
parentc2bbd16b03d036bfeaa3efaae6491132500aa7ec (diff)
downloadlinux-5e6c86b017691230b6b47f19b7d5449997e8a0b8.tar.xz
usb: gadget: mv_udc: drop ARCH dependency
This patch do the following things: 1. Change the Kconfig information. 2. Rename the driver name. 3. Don't do any type cast to io memory. 4. Add dummy stub for clk framework. Signed-off-by: Neil Zhang <zhangwm@marvell.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/platform_data/mv_usb.h')
-rw-r--r--include/linux/platform_data/mv_usb.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/platform_data/mv_usb.h b/include/linux/platform_data/mv_usb.h
index e9d9149ddf38..a642cf20ad6e 100644
--- a/include/linux/platform_data/mv_usb.h
+++ b/include/linux/platform_data/mv_usb.h
@@ -42,9 +42,17 @@ struct mv_usb_platform_data {
/* only valid for HCD. OTG or Host only*/
unsigned int mode;
- int (*phy_init)(unsigned int regbase);
- void (*phy_deinit)(unsigned int regbase);
+ int (*phy_init)(void __iomem *regbase);
+ void (*phy_deinit)(void __iomem *regbase);
int (*set_vbus)(unsigned int vbus);
};
+#ifndef CONFIG_HAVE_CLK
+/* Dummy stub for clk framework */
+#define clk_get(dev, id) NULL
+#define clk_put(clock) do {} while (0)
+#define clk_enable(clock) do {} while (0)
+#define clk_disable(clock) do {} while (0)
+#endif
+
#endif