@@ -714,7 +714,7 @@ static struct platform_driver rockchip_i2s_driver = {
.remove = rockchip_i2s_remove,
.driver = {
.name = DRV_NAME,
- .of_match_table = of_match_ptr(rockchip_i2s_match),
+ .of_match_table = rockchip_i2s_match,
.pm = &rockchip_i2s_pm_ops,
},
};
@@ -614,7 +614,7 @@ static struct platform_driver rockchip_pdm_driver = {
.remove = rockchip_pdm_remove,
.driver = {
.name = "rockchip-pdm",
- .of_match_table = of_match_ptr(rockchip_pdm_match),
+ .of_match_table = rockchip_pdm_match,
.pm = &rockchip_pdm_pm_ops,
},
};
@@ -381,7 +381,7 @@ static struct platform_driver rk_spdif_driver = {
.remove = rk_spdif_remove,
.driver = {
.name = "rockchip-spdif",
- .of_match_table = of_match_ptr(rk_spdif_match),
+ .of_match_table = rk_spdif_match,
.pm = &rk_spdif_pm_ops,
},
};
The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): sound/soc/rockchip/rockchip_i2s.c:569:34: warning: ‘rockchip_i2s_match’ defined but not used [-Wunused-const-variable=] sound/soc/rockchip/rockchip_pdm.c:463:34: warning: ‘rockchip_pdm_match’ defined but not used [-Wunused-const-variable=] sound/soc/rockchip/rockchip_spdif.c:44:34: warning: ‘rk_spdif_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> --- sound/soc/rockchip/rockchip_i2s.c | 2 +- sound/soc/rockchip/rockchip_pdm.c | 2 +- sound/soc/rockchip/rockchip_spdif.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)