Skip to contentSkip to conversation

usb: host/sl811-hcd: fix sparse warning

PATCH New Lad Prabhakar 1 participant 1 message Feb 4, 2015 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: host/sl811-hcd: fix sparse warning

From: "Lad, Prabhakar" <[email protected]>

this patch fixes following sparse warning:
sl811-hcd.c:1804:24: warning: symbol 'sl811h_driver' was not declared. Should it be static?

---
 drivers/usb/host/sl811-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/sl811-hcd.c +1 -1
index 4f4ba1e..aceddfd 100644
@@ -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,
 
Signature · 1 line
1.9.1