提交 c8ce60bb 编写于 作者: F Felipe Balbi 提交者: Greg Kroah-Hartman

usb: omap_control_usb: fix compile warning

When CONFIG_OMAP_CONTROL_USB isn't enabled,
there's a compile warning stating that a
particular function isn't a prototype.

Fix it.
Signed-off-by: NFelipe Balbi <balbi@ti.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 51482be9
...@@ -70,7 +70,7 @@ extern void omap_control_usb3_phy_power(struct device *dev, bool on); ...@@ -70,7 +70,7 @@ extern void omap_control_usb3_phy_power(struct device *dev, bool on);
extern void omap_control_usb_set_mode(struct device *dev, extern void omap_control_usb_set_mode(struct device *dev,
enum omap_control_usb_mode mode); enum omap_control_usb_mode mode);
#else #else
static inline struct device *omap_get_control_dev() static inline struct device *omap_get_control_dev(void)
{ {
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册