From: David Brown Date: Tue, 12 Mar 2013 18:41:48 +0000 (-0700) Subject: ssbi: Fix exit mismatch in remove function X-Git-Tag: v3.10-rc1~194^2~86 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7b67d5610879c8f1851a47fd5adfe7e924f3fe53;p=~emulex%2Finfiniband.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/ssbi/ssbi.c b/drivers/ssbi/ssbi.c index c08a7b859d7..da086d49d35 100644 --- a/drivers/ssbi/ssbi.c +++ b/drivers/ssbi/ssbi.c @@ -372,7 +372,7 @@ static int msm_ssbi_remove(struct platform_device *pdev) static struct platform_driver msm_ssbi_driver = { .probe = msm_ssbi_probe, - .remove = __exit_p(msm_ssbi_remove), + .remove = msm_ssbi_remove, .driver = { .name = "msm_ssbi", .owner = THIS_MODULE,