[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427973341-1019-1-git-send-email-sudipm.mukherjee@gmail.com>
Date: Thu, 2 Apr 2015 16:45:40 +0530
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Lad, Prabhakar" <prabhakar.csengg@...il.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@...il.com>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Revert "usb: host/sl811-hcd: fix sparse warning"
This reverts commit <1dc6120ef7f003305d99ef12f598a6b05eacc38c>.
if we are doing allyesconfig on x86_64, build fails with error:
drivers/built-in.o: In function `sl811_cs_probe':
sl811_cs.c:(.text+0x1d4612e): undefined reference to `sl811h_driver'
this commit has declared sl811h_driver as static but it was being
accessed from sl811_cs.c.
Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
---
drivers/usb/host/sl811-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index 944a417..f1d5c5a 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -1801,7 +1801,7 @@ sl811h_resume(struct platform_device *dev)
/* this driver is exported so sl811_cs can depend on it */
-static struct platform_driver sl811h_driver = {
+struct platform_driver sl811h_driver = {
.probe = sl811h_probe,
.remove = sl811h_remove,
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists