pinctrl: remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 28 Sep 2013 12:08:48 +0000 (17:38 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Oct 2013 08:02:25 +0000 (10:02 +0200)
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>
drivers/pinctrl/pinctrl-at91.c
drivers/pinctrl/pinctrl-exynos5440.c
drivers/pinctrl/pinctrl-imx35.c
drivers/pinctrl/pinctrl-imx51.c
drivers/pinctrl/pinctrl-imx53.c
drivers/pinctrl/pinctrl-imx6dl.c
drivers/pinctrl/pinctrl-imx6q.c
drivers/pinctrl/pinctrl-imx6sl.c
drivers/pinctrl/pinctrl-samsung.c
drivers/pinctrl/pinctrl-vf610.c
drivers/pinctrl/spear/pinctrl-plgpio.c

index 8ed9be8..0c8bf93 100644 (file)
@@ -1679,7 +1679,7 @@ static struct platform_driver at91_gpio_driver = {
        .driver = {
                .name = "gpio-at91",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(at91_gpio_of_match),
+               .of_match_table = at91_gpio_of_match,
        },
        .probe = at91_gpio_probe,
 };
@@ -1688,7 +1688,7 @@ static struct platform_driver at91_pinctrl_driver = {
        .driver = {
                .name = "pinctrl-at91",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(at91_pinctrl_of_match),
+               .of_match_table = at91_pinctrl_of_match,
        },
        .probe = at91_pinctrl_probe,
        .remove = at91_pinctrl_remove,
index 544d469..8fe2ab0 100644 (file)
@@ -1048,7 +1048,7 @@ static struct platform_driver exynos5440_pinctrl_driver = {
        .driver = {
                .name   = "exynos5440-pinctrl",
                .owner  = THIS_MODULE,
-               .of_match_table = of_match_ptr(exynos5440_pinctrl_dt_match),
+               .of_match_table = exynos5440_pinctrl_dt_match,
        },
 };
 
index c454982..278a04a 100644 (file)
@@ -1019,7 +1019,7 @@ static struct platform_driver imx35_pinctrl_driver = {
        .driver = {
                .name = "imx35-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx35_pinctrl_of_match),
+               .of_match_table = imx35_pinctrl_of_match,
        },
        .probe = imx35_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index db268b9..19ab182 100644 (file)
@@ -782,7 +782,7 @@ static struct platform_driver imx51_pinctrl_driver = {
        .driver = {
                .name = "imx51-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx51_pinctrl_of_match),
+               .of_match_table = imx51_pinctrl_of_match,
        },
        .probe = imx51_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index 17562ae..f8d45c4 100644 (file)
@@ -468,7 +468,7 @@ static struct platform_driver imx53_pinctrl_driver = {
        .driver = {
                .name = "imx53-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx53_pinctrl_of_match),
+               .of_match_table = imx53_pinctrl_of_match,
        },
        .probe = imx53_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index a76b724..db2a148 100644 (file)
@@ -474,7 +474,7 @@ static struct platform_driver imx6dl_pinctrl_driver = {
        .driver = {
                .name = "imx6dl-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx6dl_pinctrl_of_match),
+               .of_match_table = imx6dl_pinctrl_of_match,
        },
        .probe = imx6dl_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index 76dd9c4..8eb5ac1 100644 (file)
@@ -480,7 +480,7 @@ static struct platform_driver imx6q_pinctrl_driver = {
        .driver = {
                .name = "imx6q-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx6q_pinctrl_of_match),
+               .of_match_table = imx6q_pinctrl_of_match,
        },
        .probe = imx6q_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index 4eb7cca..f21b738 100644 (file)
@@ -380,7 +380,7 @@ static struct platform_driver imx6sl_pinctrl_driver = {
        .driver = {
                .name = "imx6sl-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(imx6sl_pinctrl_of_match),
+               .of_match_table = imx6sl_pinctrl_of_match,
        },
        .probe = imx6sl_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index 92a9d6c..47ec2e8 100644 (file)
@@ -1148,7 +1148,7 @@ static struct platform_driver samsung_pinctrl_driver = {
        .driver = {
                .name   = "samsung-pinctrl",
                .owner  = THIS_MODULE,
-               .of_match_table = of_match_ptr(samsung_pinctrl_dt_match),
+               .of_match_table = samsung_pinctrl_dt_match,
        },
 };
 
index 68a970b..bddd913 100644 (file)
@@ -316,7 +316,7 @@ static struct platform_driver vf610_pinctrl_driver = {
        .driver = {
                .name = "vf610-pinctrl",
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(vf610_pinctrl_of_match),
+               .of_match_table = vf610_pinctrl_of_match,
        },
        .probe = vf610_pinctrl_probe,
        .remove = imx_pinctrl_remove,
index 0a7f0bd..ff2940e 100644 (file)
@@ -735,7 +735,7 @@ static struct platform_driver plgpio_driver = {
                .owner = THIS_MODULE,
                .name = "spear-plgpio",
                .pm = &plgpio_dev_pm_ops,
-               .of_match_table = of_match_ptr(plgpio_of_match),
+               .of_match_table = plgpio_of_match,
        },
 };