aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/of.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-06-15 11:25:43 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-09 16:16:13 +0200
commit0573f2c519e570d056989e57565e1ff1640dd794 (patch)
tree08b11683f13dbc8307f9834b7fee3880139f0607 /drivers/usb/core/of.c
parentusb: remove redundant dependency on USB_SUPPORT (diff)
downloadlinux-dev-0573f2c519e570d056989e57565e1ff1640dd794.tar.xz
linux-dev-0573f2c519e570d056989e57565e1ff1640dd794.zip
usb: core: of.c: fix defined but not declare warning
The helper usb_of_get_child_node is defined at of.c, but missing its declare as a global function. Fix it by adding related header file as well as compile it on conditional of CONFIG_OF. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Ben Dooks <ben.dooks@codethink.co.uk> Cc: linux-kernel@lists.codethink.co.uk Signed-off-by: Peter Chen <peter.chen@nxp.com> Reported-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/of.c')
-rw-r--r--drivers/usb/core/of.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/of.c b/drivers/usb/core/of.c
index 2289700c31d6..3de4f8873984 100644
--- a/drivers/usb/core/of.c
+++ b/drivers/usb/core/of.c
@@ -18,6 +18,7 @@
*/
#include <linux/of.h>
+#include <linux/usb/of.h>
/**
* usb_of_get_child_node - Find the device node match port number