]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
mfd: stmfx: Drop of_match_ptr from of_device_id table
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 20 Nov 2020 16:21:29 +0000 (17:21 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Nov 2020 08:02:11 +0000 (08:02 +0000)
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/stmfx.c:542:34: warning: ‘stmfx_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>
drivers/mfd/stmfx.c

index 988e2ba6dd0f33357cc946b1c717985ec85107f2..e095a39301423c5816946eefd99bf89af9d4e234 100644 (file)
@@ -548,7 +548,7 @@ MODULE_DEVICE_TABLE(of, stmfx_of_match);
 static struct i2c_driver stmfx_driver = {
        .driver = {
                .name = "stmfx-core",
-               .of_match_table = of_match_ptr(stmfx_of_match),
+               .of_match_table = stmfx_of_match,
                .pm = &stmfx_dev_pm_ops,
        },
        .probe = stmfx_probe,