From: Jingoo Han Date: Wed, 7 May 2014 20:02:39 +0000 (-0700) Subject: Input: gpio-beeper - make of_device_id array const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=355b91151e93740756eae1dbd2c10d6e3d1d56f3;p=openwrt%2Fstaging%2Fblogic.git Input: gpio-beeper - make of_device_id array const Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/gpio-beeper.c b/drivers/input/misc/gpio-beeper.c index 5ed50ddfacfc..8886af63eae3 100644 --- a/drivers/input/misc/gpio-beeper.c +++ b/drivers/input/misc/gpio-beeper.c @@ -102,7 +102,7 @@ static int gpio_beeper_probe(struct platform_device *pdev) } #ifdef CONFIG_OF -static struct of_device_id gpio_beeper_of_match[] = { +static const struct of_device_id gpio_beeper_of_match[] = { { .compatible = BEEPER_MODNAME, }, { } };