Skip to content

Commit

Permalink
usb: omap_control_usb: fix compile warning
Browse files Browse the repository at this point in the history
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: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent 51482be commit c8ce60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usb/omap_control_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
enum omap_control_usb_mode mode);
#else
static inline struct device *omap_get_control_dev()
static inline struct device *omap_get_control_dev(void)
{
return ERR_PTR(-ENODEV);
}
Expand Down

0 comments on commit c8ce60b

Please sign in to comment.