staging: nvec: remove duplicated const
authorPeng Fan <van.freenix@gmail.com>
Tue, 16 Jun 2015 15:13:21 +0000 (23:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:30:40 +0000 (21:30 -0700)
Sparse checking warning:
"drivers/staging/nvec/nvec_ps2.c:172:14: warning: duplicate const".
Remove the duplicated const to fix the warning.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c

index 6ebbc82323c3f75f751d95b6bcfcebf935ca8357..0922dd3a08d3337c96165bf3f1b6b1c1ddb92307 100644 (file)
@@ -169,8 +169,8 @@ static int nvec_mouse_resume(struct device *dev)
 }
 #endif
 
-static const SIMPLE_DEV_PM_OPS(nvec_mouse_pm_ops, nvec_mouse_suspend,
-                               nvec_mouse_resume);
+static SIMPLE_DEV_PM_OPS(nvec_mouse_pm_ops, nvec_mouse_suspend,
+                        nvec_mouse_resume);
 
 static struct platform_driver nvec_mouse_driver = {
        .probe  = nvec_mouse_probe,