Skip to content

Commit 641a5e9

Browse files
krzkgeertu
authored andcommitted
soc: renesas: pwc-rzv2m: 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). This also fixes a !CONFIG_OF error with W=1: drivers/soc/renesas/pwc-rzv2m.c:124:34: error: ‘rzv2m_pwc_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent ddb705d commit 641a5e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/renesas/pwc-rzv2m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static struct platform_driver rzv2m_pwc_driver = {
131131
.probe = rzv2m_pwc_probe,
132132
.driver = {
133133
.name = "rzv2m_pwc",
134-
.of_match_table = of_match_ptr(rzv2m_pwc_of_match),
134+
.of_match_table = rzv2m_pwc_of_match,
135135
},
136136
};
137137
module_platform_driver(rzv2m_pwc_driver);

0 commit comments

Comments
 (0)