Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stephen Boyd and committed by
Linus Walleij
fcffa97f 2a3cf6a3

+2 -1
+2 -1
drivers/gpio/gpio-msm-v2.c
··· 430 430 return 0; 431 431 } 432 432 433 - static struct of_device_id msm_gpio_of_match[] = { 433 + static const struct of_device_id msm_gpio_of_match[] = { 434 434 { .compatible = "qcom,msm-gpio", }, 435 435 { }, 436 436 }; 437 + MODULE_DEVICE_TABLE(of, msm_gpio_of_match); 437 438 438 439 static int msm_gpio_remove(struct platform_device *dev) 439 440 {