mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
net: gemini: 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@huawei.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
81d463c02b
commit
21b566fda0
1 changed files with 2 additions and 2 deletions
|
@ -2538,7 +2538,7 @@ MODULE_DEVICE_TABLE(of, gemini_ethernet_port_of_match);
|
|||
static struct platform_driver gemini_ethernet_port_driver = {
|
||||
.driver = {
|
||||
.name = "gemini-ethernet-port",
|
||||
.of_match_table = of_match_ptr(gemini_ethernet_port_of_match),
|
||||
.of_match_table = gemini_ethernet_port_of_match,
|
||||
},
|
||||
.probe = gemini_ethernet_port_probe,
|
||||
.remove = gemini_ethernet_port_remove,
|
||||
|
@ -2604,7 +2604,7 @@ MODULE_DEVICE_TABLE(of, gemini_ethernet_of_match);
|
|||
static struct platform_driver gemini_ethernet_driver = {
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = of_match_ptr(gemini_ethernet_of_match),
|
||||
.of_match_table = gemini_ethernet_of_match,
|
||||
},
|
||||
.probe = gemini_ethernet_probe,
|
||||
.remove = gemini_ethernet_remove,
|
||||
|
|
Loading…
Reference in a new issue