usb: host/sl811-hcd: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 18:05:13 +0000 (18:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:20:34 +0000 (16:20 +0100)
this patch fixes following sparse warning:
sl811-hcd.c:1804:24: warning: symbol 'sl811h_driver' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/sl811-hcd.c

index 4f4ba1ea9e9be5298a145ffd506c37370f266655..aceddfdd166da98328602cf979628b3f8c45d911 100644 (file)
@@ -1801,7 +1801,7 @@ sl811h_resume(struct platform_device *dev)
 
 
 /* this driver is exported so sl811_cs can depend on it */
-struct platform_driver sl811h_driver = {
+static struct platform_driver sl811h_driver = {
        .probe =        sl811h_probe,
        .remove =       sl811h_remove,