usb: host: ohci-spear: Remove redundant use of of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 21 May 2013 11:47:20 +0000 (17:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 18:42:13 +0000 (11:42 -0700)
'spear_ohci_id_table' is always compiled in. Hence use of
of_match_ptr is unnecessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-spear.c

index 6f9a1dca7373c6b02cd38be869d1391a78ca7709..6a7cb1407326b917ac82ad1a7a0aeaf1fa74dc08 100644 (file)
@@ -230,7 +230,7 @@ static struct platform_driver spear_ohci_hcd_driver = {
        .driver = {
                .owner = THIS_MODULE,
                .name = "spear-ohci",
-               .of_match_table = of_match_ptr(spear_ohci_id_table),
+               .of_match_table = spear_ohci_id_table,
        },
 };