Skip to content

Commit ee4de63

Browse files
krzkwsakernel
authored andcommitted
i2c: mt65xx: 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-mt65xx.c:514:34: error: ‘mtk_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> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent cbffe6b commit ee4de63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-mt65xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_driver = {
15461546
.driver = {
15471547
.name = I2C_DRV_NAME,
15481548
.pm = &mtk_i2c_pm,
1549-
.of_match_table = of_match_ptr(mtk_i2c_of_match),
1549+
.of_match_table = mtk_i2c_of_match,
15501550
},
15511551
};
15521552

0 commit comments

Comments
 (0)