Skip to content

Commit 8759500

Browse files
krzkwsakernel
authored andcommitted
i2c: owl: 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/i2c/busses/i2c-owl.c:510:34: error: ‘owl_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent ee4de63 commit 8759500

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-owl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static struct platform_driver owl_i2c_driver = {
519519
.probe = owl_i2c_probe,
520520
.driver = {
521521
.name = "owl-i2c",
522-
.of_match_table = of_match_ptr(owl_i2c_of_match),
522+
.of_match_table = owl_i2c_of_match,
523523
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
524524
},
525525
};

0 commit comments

Comments
 (0)