]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: omap-usb: Remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 15 Oct 2013 03:48:50 +0000 (09:18 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:21:58 +0000 (16:21 +0100)
The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/omap-usb-host.c
drivers/mfd/omap-usb-tll.c

index 29ee54d68512e3ce38dad4b5d6897f192b8295f8..1b65ffe08ff925c47066a6d10d1cf28a105b7374 100644 (file)
@@ -893,7 +893,7 @@ static struct platform_driver usbhs_omap_driver = {
                .name           = (char *)usbhs_driver_name,
                .owner          = THIS_MODULE,
                .pm             = &usbhsomap_dev_pm_ops,
-               .of_match_table = of_match_ptr(usbhs_omap_dt_ids),
+               .of_match_table = usbhs_omap_dt_ids,
        },
        .remove         = usbhs_omap_remove,
 };
index e59ac4cbac96136c7cf34607030a408428c6b3a9..b8f6401cbc2289d0d1ef48ea18c923e867786071 100644 (file)
@@ -320,7 +320,7 @@ static struct platform_driver usbtll_omap_driver = {
        .driver = {
                .name           = (char *)usbtll_driver_name,
                .owner          = THIS_MODULE,
-               .of_match_table = of_match_ptr(usbtll_omap_dt_ids),
+               .of_match_table = usbtll_omap_dt_ids,
        },
        .probe          = usbtll_omap_probe,
        .remove         = usbtll_omap_remove,