From: Ruan Jinjie Date: Mon, 14 Aug 2023 02:55:16 +0000 (+0800) Subject: net: dsa: rzn1-a5psw: Remove redundant of_match_ptr() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=81d463c02b910f4abb1415c365f9491e10333552;p=tomoyo%2Ftomoyo-test1.git net: dsa: rzn1-a5psw: Remove redundant of_match_ptr() The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie Reviewed-by: Vladimir Oltean Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c index 2bb458f2c1f8..9167e83fbceb 100644 --- a/drivers/net/dsa/rzn1_a5psw.c +++ b/drivers/net/dsa/rzn1_a5psw.c @@ -1314,7 +1314,7 @@ MODULE_DEVICE_TABLE(of, a5psw_of_mtable); static struct platform_driver a5psw_driver = { .driver = { .name = "rzn1_a5psw", - .of_match_table = of_match_ptr(a5psw_of_mtable), + .of_match_table = a5psw_of_mtable, }, .probe = a5psw_probe, .remove = a5psw_remove,