mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
of: unittest: 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> Link: https://lore.kernel.org/r/20230808094043.2732158-1-ruanjinjie@huawei.com Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
66a4210bc8
commit
2b9583244a
1 changed files with 3 additions and 3 deletions
|
@ -1696,7 +1696,7 @@ static struct platform_driver unittest_driver = {
|
|||
.remove_new = unittest_remove,
|
||||
.driver = {
|
||||
.name = "unittest",
|
||||
.of_match_table = of_match_ptr(unittest_match),
|
||||
.of_match_table = unittest_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -1797,7 +1797,7 @@ static struct platform_driver unittest_gpio_driver = {
|
|||
.remove_new = unittest_gpio_remove,
|
||||
.driver = {
|
||||
.name = "unittest-gpio",
|
||||
.of_match_table = of_match_ptr(unittest_gpio_id),
|
||||
.of_match_table = unittest_gpio_id,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -2624,7 +2624,7 @@ static struct platform_driver unittest_i2c_bus_driver = {
|
|||
.remove_new = unittest_i2c_bus_remove,
|
||||
.driver = {
|
||||
.name = "unittest-i2c-bus",
|
||||
.of_match_table = of_match_ptr(unittest_i2c_bus_match),
|
||||
.of_match_table = unittest_i2c_bus_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue