]> err.no Git - linux-2.6/commitdiff
Input: gpio-keys - make gpio_keys_device_driver static
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Wed, 30 Jul 2008 14:34:02 +0000 (10:34 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Jul 2008 14:40:44 +0000 (10:40 -0400)
This fixes the sparse warning

symbol 'gpio_keys_device_driver' was not declared. Should it be static?

Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c

index 1a92f4b04c176d4af11a2631a549c790f8f170bf..3f48279f219502b70aaf80f267b8ae1b190b2ab7 100644 (file)
@@ -257,7 +257,7 @@ static int gpio_keys_resume(struct platform_device *pdev)
 #define gpio_keys_resume       NULL
 #endif
 
-struct platform_driver gpio_keys_device_driver = {
+static struct platform_driver gpio_keys_device_driver = {
        .probe          = gpio_keys_probe,
        .remove         = __devexit_p(gpio_keys_remove),
        .suspend        = gpio_keys_suspend,