Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: stmfx: 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/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>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
a06d0dc4 a232bcd2

+1 -1
+1 -1
drivers/mfd/stmfx.c
··· 548 548 static struct i2c_driver stmfx_driver = { 549 549 .driver = { 550 550 .name = "stmfx-core", 551 - .of_match_table = of_match_ptr(stmfx_of_match), 551 + .of_match_table = stmfx_of_match, 552 552 .pm = &stmfx_dev_pm_ops, 553 553 }, 554 554 .probe = stmfx_probe,