i2c: mt65xx: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Mar 2023 11:16:54 +0000 (12:16 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 16 Mar 2023 19:53:53 +0000 (20:53 +0100)
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>
drivers/i2c/busses/i2c-mt65xx.c

index 43dd966d5ef58556284d211669417896a8d27f23..59eaefe999b11fb19dab70c9e1dd89bcbc7b3c9b 100644 (file)
@@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_driver = {
        .driver = {
                .name = I2C_DRV_NAME,
                .pm = &mtk_i2c_pm,
-               .of_match_table = of_match_ptr(mtk_i2c_of_match),
+               .of_match_table = mtk_i2c_of_match,
        },
 };