OSDN Git Service

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 6a9a881..bc7e664 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,