aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-12-10 18:19:04 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-12-12 14:03:23 -0500
commitfcffa97f8e182306cf76f101ccb3b397399da772 (patch)
tree5e1bd09e24ade8be7980cd5c00356519af8dc74d
parent2a3cf6a3599e901528d3e0025a1bd0722a8d3575 (diff)
gpio: msm: Add module device table and mark table const
This allows the module to be loaded automatically. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-msm-v2.c3
1 files changed, 2 insertions, 1 deletions
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)
430 return 0; 430 return 0;
431} 431}
432 432
433static struct of_device_id msm_gpio_of_match[] = { 433static const struct of_device_id msm_gpio_of_match[] = {
434 { .compatible = "qcom,msm-gpio", }, 434 { .compatible = "qcom,msm-gpio", },
435 { }, 435 { },
436}; 436};
437MODULE_DEVICE_TABLE(of, msm_gpio_of_match);
437 438
438static int msm_gpio_remove(struct platform_device *dev) 439static int msm_gpio_remove(struct platform_device *dev)
439{ 440{