diff options
author | Ben Dooks (Codethink) <ben.dooks@codethink.co.uk> | 2019-10-17 15:44:27 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2019-10-27 09:58:44 +0300 |
commit | 5053691a7d62a4ad1566aa923e33f5d21a8016f0 (patch) | |
tree | a0661c5470aedb64bca7bdbd39f70b14be7d8bd8 /drivers/usb | |
parent | b26a4052cf9a93672f154976de14705fbf8a8179 (diff) | |
download | linux-5053691a7d62a4ad1566aa923e33f5d21a8016f0.tar.xz |
usb: cdns3: include host-export,h for cdns3_host_init
The cdns3_host_init() function is declared in host-export.h
but host.c does not include it. Add the include to have
the declaration present (and remove the declaration of
cdns3_host_exit which is now static).
Fixes the following sparse warning:
drivers/usb/cdns3/host.c:58:5: warning: symbol 'cdns3_host_init' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/cdns3/host-export.h | 1 | ||||
-rw-r--r-- | drivers/usb/cdns3/host.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/host-export.h b/drivers/usb/cdns3/host-export.h index b498a170b7e8..ae11810f8826 100644 --- a/drivers/usb/cdns3/host-export.h +++ b/drivers/usb/cdns3/host-export.h @@ -12,7 +12,6 @@ #ifdef CONFIG_USB_CDNS3_HOST int cdns3_host_init(struct cdns3 *cdns); -void cdns3_host_exit(struct cdns3 *cdns); #else diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index 2733a8f71fcd..ad788bf3fe4f 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -12,6 +12,7 @@ #include <linux/platform_device.h> #include "core.h" #include "drd.h" +#include "host-export.h" static int __cdns3_host_init(struct cdns3 *cdns) { |