mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Stephen Boyd
parent
3650b228f8
commit
967069aa4d
@@ -147,7 +147,7 @@ static struct platform_driver clk_pwm_driver = {
|
|||||||
.remove = clk_pwm_remove,
|
.remove = clk_pwm_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "pwm-clock",
|
.name = "pwm-clock",
|
||||||
.of_match_table = of_match_ptr(clk_pwm_dt_ids),
|
.of_match_table = clk_pwm_dt_ids,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user