aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssbi
diff options
context:
space:
mode:
authorDavid Brown <davidb@codeaurora.org>2013-03-12 14:41:48 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 13:37:21 -0400
commit7b67d5610879c8f1851a47fd5adfe7e924f3fe53 (patch)
treee1a9299ca293ec4c21a774444e72052efa5507bf /drivers/ssbi
parenta1a906c5721f05252e0dbd4b11ef25539d7bd9d0 (diff)
ssbi: Fix exit mismatch in remove function
msm_ssbi_remove is referenced with __exit_p, but not declared with __exit. This causes a warning when the driver is not built as a module: drivers/ssbi/ssbi.c:341:23: warning: 'msm_ssbi_remove' defined but not used [-Wunused-function] The remove is needed for unbinding to work, even if not compiled as a module, so just remove it. Signed-off-by: David Brown <davidb@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ssbi')
-rw-r--r--drivers/ssbi/ssbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssbi/ssbi.c b/drivers/ssbi/ssbi.c
index c08a7b859d74..da086d49d35c 100644
--- a/drivers/ssbi/ssbi.c
+++ b/drivers/ssbi/ssbi.c
@@ -372,7 +372,7 @@ static int msm_ssbi_remove(struct platform_device *pdev)
372 372
373static struct platform_driver msm_ssbi_driver = { 373static struct platform_driver msm_ssbi_driver = {
374 .probe = msm_ssbi_probe, 374 .probe = msm_ssbi_probe,
375 .remove = __exit_p(msm_ssbi_remove), 375 .remove = msm_ssbi_remove,
376 .driver = { 376 .driver = {
377 .name = "msm_ssbi", 377 .name = "msm_ssbi",
378 .owner = THIS_MODULE, 378 .owner = THIS_MODULE,