提交 466ba3c8 编写于 作者: K Krzysztof Kozlowski 提交者: Philipp Zabel

reset: a10sr: add missing of_match_table reference

The driver defined of_device_id table but did not use it with
of_match_table.  This prevents usual matching via devicetree and causes
a W=1 warning:

  drivers/reset/reset-a10sr.c:111:34: warning:
    ‘a10sr_reset_of_match’ defined but not used [-Wunused-const-variable=]
Reported-by: Nkernel test robot <lkp@intel.com>
Fixes: 62700682 ("reset: Add Altera Arria10 SR Reset Controller")
Signed-off-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210507112803.20012-1-krzysztof.kozlowski@canonical.comSigned-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
上级 6ab9d621
...@@ -118,6 +118,7 @@ static struct platform_driver a10sr_reset_driver = { ...@@ -118,6 +118,7 @@ static struct platform_driver a10sr_reset_driver = {
.probe = a10sr_reset_probe, .probe = a10sr_reset_probe,
.driver = { .driver = {
.name = "altr_a10sr_reset", .name = "altr_a10sr_reset",
.of_match_table = a10sr_reset_of_match,
}, },
}; };
module_platform_driver(a10sr_reset_driver); module_platform_driver(a10sr_reset_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册