diff options
| author | Krzysztof Kozlowski <[email protected]> | 2023-03-12 19:37:22 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2023-04-19 14:08:31 +0000 |
| commit | 8107fe93896dee8f159c8cb4ec8ec18656fbcd96 (patch) | |
| tree | 11f5ed9f2079dd6d834467ad516a9b31b0b65cd4 /drivers/hwmon/pwm-fan.c | |
| parent | Merge branch 'hwmon-const' into HEAD (diff) | |
| download | kernel-8107fe93896dee8f159c8cb4ec8ec18656fbcd96.tar.gz kernel-8107fe93896dee8f159c8cb4ec8ec18656fbcd96.zip | |
hwmon: (gpio-fan) drop of_match_ptr for 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 not be relevant here). This
also fixes !CONFIG_OF error:
drivers/hwmon/gpio-fan.c:484:34: error: ‘of_gpio_fan_match’ defined but not used [-Werror=unused-const-variable=]
Note(groeck): The build error is only seen if Kconfig dependencies
are messed up. The driver depends on OF_GPIO which should depend
on OF. This was temporarily broken in linux-next, and it was
possible to select CONFIG_OF=n and CONFIG_SENSORS_GPIO_FAN=y.
Nevertheless, this is a sensible fix.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
0 files changed, 0 insertions, 0 deletions
