net: ethernet: cpsw: Remove redundant of_match_ptr
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 30 Sep 2013 04:25:12 +0000 (09:55 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2013 16:30:25 +0000 (12:30 -0400)
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>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 5efb37bf0681ff32203da5314aae517ac96c70b5..7290f11a937dae164c8fb3896475a7174769d77c 100644 (file)
@@ -2217,7 +2217,7 @@ static struct platform_driver cpsw_driver = {
                .name    = "cpsw",
                .owner   = THIS_MODULE,
                .pm      = &cpsw_pm_ops,
-               .of_match_table = of_match_ptr(cpsw_of_mtable),
+               .of_match_table = cpsw_of_mtable,
        },
        .probe = cpsw_probe,
        .remove = cpsw_remove,