summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-fsl.c
diff options
context:
space:
mode:
authorAnton Vorontsov2009-12-14 16:41:05 +0100
committerGreg Kroah-Hartman2010-03-02 23:53:14 +0100
commitdad3843f035a273f9b64e133467e8dcbfaf0ce60 (patch)
treeff1725e1843c248b5fe52c4170e0256013b55986 /drivers/usb/host/ehci-fsl.c
parentUSB: ehci: fix audio record functionality for some Full speed sound blaster d... (diff)
downloadkernel-qcow2-linux-dad3843f035a273f9b64e133467e8dcbfaf0ce60.tar.gz
kernel-qcow2-linux-dad3843f035a273f9b64e133467e8dcbfaf0ce60.tar.xz
kernel-qcow2-linux-dad3843f035a273f9b64e133467e8dcbfaf0ce60.zip
USB: ehci-fsl: Fix sparse warnings
This patch fixes following warnings: ehci-fsl.c:43:5: warning: symbol 'usb_hcd_fsl_probe' was not declared. Should it be static? ehci-fsl.c:150:6: warning: symbol 'usb_hcd_fsl_remove' was not declared. Should it be static? Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-fsl.c')
-rw-r--r--drivers/usb/host/ehci-fsl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 991174937db3..593a7e76cffa 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -40,8 +40,8 @@
* Allocates basic resources for this USB host controller.
*
*/
-int usb_hcd_fsl_probe(const struct hc_driver *driver,
- struct platform_device *pdev)
+static int usb_hcd_fsl_probe(const struct hc_driver *driver,
+ struct platform_device *pdev)
{
struct fsl_usb2_platform_data *pdata;
struct usb_hcd *hcd;
@@ -147,7 +147,8 @@ int usb_hcd_fsl_probe(const struct hc_driver *driver,
* Reverses the effect of usb_hcd_fsl_probe().
*
*/
-void usb_hcd_fsl_remove(struct usb_hcd *hcd, struct platform_device *pdev)
+static void usb_hcd_fsl_remove(struct usb_hcd *hcd,
+ struct platform_device *pdev)
{
usb_remove_hcd(hcd);
iounmap(hcd->regs);