Commit 606fca94f7bd156d37be1b38b3aded3ede5994b1

Authored by Sachin Kamat
Committed by Linus Walleij
1 parent fdc07cc13a

pinctrl: remove redundant of_match_ptr

The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

This is a squash commit of:
pinctrl: at91: Remove redundant of_match_ptr
pinctrl: exynos5440: Remove redundant of_match_ptr
pinctrl: imx35: Remove redundant of_match_ptr
pinctrl: imx51: Remove redundant of_match_ptr
pinctrl: imx53: Remove redundant of_match_ptr
pinctrl: imx6dl: Remove redundant of_match_ptr
pinctrl: imx6q: Remove redundant of_match_ptr
pinctrl: samsung: Remove redundant of_match_ptr
pinctrl: vf610: Remove redundant of_match_ptr
pinctrl: imx6sl: Remove redundant of_match_ptr
pinctrl: plgpio: Remove redundant of_match_ptr

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Showing 11 changed files with 12 additions and 12 deletions Side-by-side Diff

drivers/pinctrl/pinctrl-at91.c
... ... @@ -1679,7 +1679,7 @@
1679 1679 .driver = {
1680 1680 .name = "gpio-at91",
1681 1681 .owner = THIS_MODULE,
1682   - .of_match_table = of_match_ptr(at91_gpio_of_match),
  1682 + .of_match_table = at91_gpio_of_match,
1683 1683 },
1684 1684 .probe = at91_gpio_probe,
1685 1685 };
... ... @@ -1688,7 +1688,7 @@
1688 1688 .driver = {
1689 1689 .name = "pinctrl-at91",
1690 1690 .owner = THIS_MODULE,
1691   - .of_match_table = of_match_ptr(at91_pinctrl_of_match),
  1691 + .of_match_table = at91_pinctrl_of_match,
1692 1692 },
1693 1693 .probe = at91_pinctrl_probe,
1694 1694 .remove = at91_pinctrl_remove,
drivers/pinctrl/pinctrl-exynos5440.c
... ... @@ -1048,7 +1048,7 @@
1048 1048 .driver = {
1049 1049 .name = "exynos5440-pinctrl",
1050 1050 .owner = THIS_MODULE,
1051   - .of_match_table = of_match_ptr(exynos5440_pinctrl_dt_match),
  1051 + .of_match_table = exynos5440_pinctrl_dt_match,
1052 1052 },
1053 1053 };
1054 1054  
drivers/pinctrl/pinctrl-imx35.c
... ... @@ -1019,7 +1019,7 @@
1019 1019 .driver = {
1020 1020 .name = "imx35-pinctrl",
1021 1021 .owner = THIS_MODULE,
1022   - .of_match_table = of_match_ptr(imx35_pinctrl_of_match),
  1022 + .of_match_table = imx35_pinctrl_of_match,
1023 1023 },
1024 1024 .probe = imx35_pinctrl_probe,
1025 1025 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-imx51.c
... ... @@ -782,7 +782,7 @@
782 782 .driver = {
783 783 .name = "imx51-pinctrl",
784 784 .owner = THIS_MODULE,
785   - .of_match_table = of_match_ptr(imx51_pinctrl_of_match),
  785 + .of_match_table = imx51_pinctrl_of_match,
786 786 },
787 787 .probe = imx51_pinctrl_probe,
788 788 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-imx53.c
... ... @@ -468,7 +468,7 @@
468 468 .driver = {
469 469 .name = "imx53-pinctrl",
470 470 .owner = THIS_MODULE,
471   - .of_match_table = of_match_ptr(imx53_pinctrl_of_match),
  471 + .of_match_table = imx53_pinctrl_of_match,
472 472 },
473 473 .probe = imx53_pinctrl_probe,
474 474 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-imx6dl.c
... ... @@ -474,7 +474,7 @@
474 474 .driver = {
475 475 .name = "imx6dl-pinctrl",
476 476 .owner = THIS_MODULE,
477   - .of_match_table = of_match_ptr(imx6dl_pinctrl_of_match),
  477 + .of_match_table = imx6dl_pinctrl_of_match,
478 478 },
479 479 .probe = imx6dl_pinctrl_probe,
480 480 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-imx6q.c
... ... @@ -480,7 +480,7 @@
480 480 .driver = {
481 481 .name = "imx6q-pinctrl",
482 482 .owner = THIS_MODULE,
483   - .of_match_table = of_match_ptr(imx6q_pinctrl_of_match),
  483 + .of_match_table = imx6q_pinctrl_of_match,
484 484 },
485 485 .probe = imx6q_pinctrl_probe,
486 486 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-imx6sl.c
... ... @@ -380,7 +380,7 @@
380 380 .driver = {
381 381 .name = "imx6sl-pinctrl",
382 382 .owner = THIS_MODULE,
383   - .of_match_table = of_match_ptr(imx6sl_pinctrl_of_match),
  383 + .of_match_table = imx6sl_pinctrl_of_match,
384 384 },
385 385 .probe = imx6sl_pinctrl_probe,
386 386 .remove = imx_pinctrl_remove,
drivers/pinctrl/pinctrl-samsung.c
... ... @@ -1148,7 +1148,7 @@
1148 1148 .driver = {
1149 1149 .name = "samsung-pinctrl",
1150 1150 .owner = THIS_MODULE,
1151   - .of_match_table = of_match_ptr(samsung_pinctrl_dt_match),
  1151 + .of_match_table = samsung_pinctrl_dt_match,
1152 1152 },
1153 1153 };
1154 1154  
drivers/pinctrl/pinctrl-vf610.c
... ... @@ -316,7 +316,7 @@
316 316 .driver = {
317 317 .name = "vf610-pinctrl",
318 318 .owner = THIS_MODULE,
319   - .of_match_table = of_match_ptr(vf610_pinctrl_of_match),
  319 + .of_match_table = vf610_pinctrl_of_match,
320 320 },
321 321 .probe = vf610_pinctrl_probe,
322 322 .remove = imx_pinctrl_remove,
drivers/pinctrl/spear/pinctrl-plgpio.c
... ... @@ -735,7 +735,7 @@
735 735 .owner = THIS_MODULE,
736 736 .name = "spear-plgpio",
737 737 .pm = &plgpio_dev_pm_ops,
738   - .of_match_table = of_match_ptr(plgpio_of_match),
  738 + .of_match_table = plgpio_of_match,
739 739 },
740 740 };
741 741