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>
This commit is contained in:
Stephen Boyd 2013-12-10 15:19:04 -08:00 committed by Linus Walleij
parent 2a3cf6a359
commit fcffa97f8e
1 changed files with 2 additions and 1 deletions

View File

@ -430,10 +430,11 @@ static int msm_gpio_probe(struct platform_device *pdev)
return 0; 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", }, { .compatible = "qcom,msm-gpio", },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, msm_gpio_of_match);
static int msm_gpio_remove(struct platform_device *dev) static int msm_gpio_remove(struct platform_device *dev)
{ {