Skip to content

Commit

Permalink
gpio: msm: Add module device table and mark table const
Browse files Browse the repository at this point in the history
This allows the module to be loaded automatically.

Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
bebarino authored and linusw committed Dec 12, 2013
1 parent 2a3cf6a commit fcffa97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-msm-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fcffa97

Please sign in to comment.