staging: olpc_dcon: fix sparse symbol not declared warning
authorMurilo Opsfelder Araujo <mopsfelder@gmail.com>
Fri, 16 Jan 2015 01:55:00 +0000 (23:55 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:17:10 +0000 (15:17 -0800)
This patch gets rid of the following sparse warning:

drivers/staging/olpc_dcon/olpc_dcon.c:787:19: warning: symbol 'dcon_driver' was not declared. Should it be static?

Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index 6a9a8815477cdd4f469c4c5fddcfa42dd4a801ce..bc7e664cc8a7fffdeb761bf6e2dce41ca7201807 100644 (file)
@@ -780,7 +780,7 @@ static const struct i2c_device_id dcon_idtable[] = {
 };
 MODULE_DEVICE_TABLE(i2c, dcon_idtable);
 
-struct i2c_driver dcon_driver = {
+static struct i2c_driver dcon_driver = {
        .driver = {
                .name   = "olpc_dcon",
                .pm = &dcon_pm_ops,