Skip to content

Commit 7490b8f

Browse files
krzkJassiBrar
authored andcommitted
mailbox: rockchip: drop of_match_ptr for ID table
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 might not be relevant here). drivers/mailbox/rockchip-mailbox.c:158:34: error: ‘rockchip_mbox_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 2d1e952 commit 7490b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mailbox/rockchip-mailbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static struct platform_driver rockchip_mbox_driver = {
248248
.probe = rockchip_mbox_probe,
249249
.driver = {
250250
.name = "rockchip-mailbox",
251-
.of_match_table = of_match_ptr(rockchip_mbox_of_match),
251+
.of_match_table = rockchip_mbox_of_match,
252252
},
253253
};
254254

0 commit comments

Comments
 (0)