[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230814025520.2708714-3-ruanjinjie@huawei.com>
Date: Mon, 14 Aug 2023 10:55:16 +0800
From: Ruan Jinjie <ruanjinjie@...wei.com>
To: <linus.walleij@...aro.org>, <alsi@...g-olufsen.dk>, <andrew@...n.ch>,
<f.fainelli@...il.com>, <olteanv@...il.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<clement.leger@...tlin.com>, <ulli.kroll@...glemail.com>, <kvalo@...nel.org>,
<bhupesh.sharma@...aro.org>, <robh@...nel.org>, <elder@...aro.org>,
<wei.fang@....com>, <nicolas.ferre@...rochip.com>,
<simon.horman@...igine.com>, <romieu@...zoreil.com>,
<dmitry.torokhov@...il.com>, <netdev@...r.kernel.org>,
<linux-renesas-soc@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-wireless@...r.kernel.org>
CC: <ruanjinjie@...wei.com>
Subject: [PATCH net-next v3 2/5] 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 <ruanjinjie@...wei.com>
Reviewed-by: Vladimir Oltean <olteanv@...il.com>
---
drivers/net/dsa/rzn1_a5psw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
index c37d2e537230..b31ae8845b58 100644
--- a/drivers/net/dsa/rzn1_a5psw.c
+++ b/drivers/net/dsa/rzn1_a5psw.c
@@ -1090,7 +1090,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,
--
2.34.1
Powered by blists - more mailing lists