From: Sachin Kamat Date: Mon, 30 Sep 2013 04:25:12 +0000 (+0530) Subject: net: ethernet: cpsw: Remove redundant of_match_ptr X-Git-Tag: v3.13-rc1~105^2~257 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1e5c76d40fd41194472b4c1b369d7d63df0bea03;p=~emulex%2Finfiniband.git net: ethernet: cpsw: Remove redundant of_match_ptr The data structure of_match_ptr() protects is always compiled in. Hence of_match_ptr() is not needed. Signed-off-by: Sachin Kamat Acked-by: Mugunthan V N Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 5efb37bf068..7290f11a937 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -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,