mediatek: copy patches-6.1 to patches-6.6
[openwrt/staging/981213.git] / target / linux / mediatek / patches-6.6 / 853-v6.3-i2c-mt65xx-drop-of_match_ptr-for-ID-table.patch
1 From 8106fa2e0ae6082833fe1df97829c46c0183eaea Mon Sep 17 00:00:00 2001
2 From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
3 Date: Sat, 11 Mar 2023 12:16:54 +0100
4 Subject: [PATCH 14/16] i2c: mt65xx: drop of_match_ptr for ID table
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 The driver can match only via the DT table so the table should be always
10 used and the of_match_ptr does not have any sense (this also allows ACPI
11 matching via PRP0001, even though it might not be relevant here).
12
13 drivers/i2c/busses/i2c-mt65xx.c:514:34: error: ‘mtk_i2c_of_match’ defined but not used [-Werror=unused-const-variable=]
14
15 Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
16 Reviewed-by: Guenter Roeck <groeck@chromium.org>
17 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
18 Signed-off-by: Wolfram Sang <wsa@kernel.org>
19 ---
20 drivers/i2c/busses/i2c-mt65xx.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/i2c/busses/i2c-mt65xx.c
24 +++ b/drivers/i2c/busses/i2c-mt65xx.c
25 @@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_dr
26 .driver = {
27 .name = I2C_DRV_NAME,
28 .pm = &mtk_i2c_pm,
29 - .of_match_table = of_match_ptr(mtk_i2c_of_match),
30 + .of_match_table = mtk_i2c_of_match,
31 },
32 };
33