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

clk: pwm: 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 might be not relevant here). This
fixes compile warning (!CONFIG_OF && !CONFIG_MODULES):

drivers/clk/clk-pwm.c:139:34: warning:
‘clk_pwm_dt_ids’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201103162435.13689-1-krzk@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Stephen Boyd
967069aa 3650b228

+1 -1
+1 -1
drivers/clk/clk-pwm.c
··· 147 147 .remove = clk_pwm_remove, 148 148 .driver = { 149 149 .name = "pwm-clock", 150 - .of_match_table = of_match_ptr(clk_pwm_dt_ids), 150 + .of_match_table = clk_pwm_dt_ids, 151 151 }, 152 152 }; 153 153