mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
|
From 8106fa2e0ae6082833fe1df97829c46c0183eaea Mon Sep 17 00:00:00 2001
|
|||
|
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
|
|||
|
Date: Sat, 11 Mar 2023 12:16:54 +0100
|
|||
|
Subject: [PATCH 14/16] i2c: mt65xx: drop of_match_ptr for ID table
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
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 | 2 +-
|
|||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|||
|
|
|||
|
--- a/drivers/i2c/busses/i2c-mt65xx.c
|
|||
|
+++ b/drivers/i2c/busses/i2c-mt65xx.c
|
|||
|
@@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_dr
|
|||
|
.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,
|
|||
|
},
|
|||
|
};
|
|||
|
|