summaryrefslogtreecommitdiff
path: root/drivers/mfd/sun4i-gpadc.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-11-20 17:21:30 +0100
committerLee Jones <lee.jones@linaro.org>2020-11-27 08:02:27 +0000
commitcc5b7ebe45f3cecf5571a30125f62709aa494a8a (patch)
treea2beb28b767d7b1188f00148813da535b6103cbd /drivers/mfd/sun4i-gpadc.c
parent608a4758575df01076e550ceb1a97fa326e19e63 (diff)
mfd: sun4i: Drop of_match_ptr from of_device_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 is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): drivers/mfd/sun4i-gpadc.c:79:34: warning: ‘sun4i_gpadc_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sun4i-gpadc.c')
-rw-r--r--drivers/mfd/sun4i-gpadc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c
index aaa233d916b2..cfe14d9bf6dc 100644
--- a/drivers/mfd/sun4i-gpadc.c
+++ b/drivers/mfd/sun4i-gpadc.c
@@ -166,7 +166,7 @@ static int sun4i_gpadc_probe(struct platform_device *pdev)
static struct platform_driver sun4i_gpadc_driver = {
.driver = {
.name = "sun4i-gpadc",
- .of_match_table = of_match_ptr(sun4i_gpadc_of_match),
+ .of_match_table = sun4i_gpadc_of_match,
},
.probe = sun4i_gpadc_probe,
};