From: Stephen Boyd Date: Tue, 10 Dec 2013 23:19:04 +0000 (-0800) Subject: gpio: msm: Add module device table and mark table const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fcffa97f8e182306cf76f101ccb3b397399da772;p=linux-beck.git gpio: msm: Add module device table and mark table const This allows the module to be loaded automatically. Signed-off-by: Stephen Boyd Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-msm-v2.c b/drivers/gpio/gpio-msm-v2.c index 7b37300973db..81c1d55abf72 100644 --- a/drivers/gpio/gpio-msm-v2.c +++ b/drivers/gpio/gpio-msm-v2.c @@ -430,10 +430,11 @@ static int msm_gpio_probe(struct platform_device *pdev) return 0; } -static struct of_device_id msm_gpio_of_match[] = { +static const struct of_device_id msm_gpio_of_match[] = { { .compatible = "qcom,msm-gpio", }, { }, }; +MODULE_DEVICE_TABLE(of, msm_gpio_of_match); static int msm_gpio_remove(struct platform_device *dev) {