From: Murilo Opsfelder Araujo Date: Fri, 16 Jan 2015 01:55:00 +0000 (-0200) Subject: staging: olpc_dcon: fix sparse symbol not declared warning X-Git-Tag: v4.0-rc1~82^2~342 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4e8e87162e839286fbce2d68e8341a1e53066630;p=karo-tx-linux.git staging: olpc_dcon: fix sparse symbol not declared warning 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index 6a9a8815477c..bc7e664cc8a7 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -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,