Skip to content

Commit a4eb71f

Browse files
Marek Vasutbroonie
authored andcommitted
regulator: rpi-panel-v2: Fix missing OF dependency
Add missing OF dependency and drop of_match_ptr() use. This fixes the following LKP report: " >> drivers/regulator/rpi-panel-v2-regulator.c:95:34: warning: 'rpi_panel_v2_dt_ids' defined but not used [-Wunused-const-variable=] static const struct of_device_id rpi_panel_v2_dt_ids[] = { ^~~~~~~~~~~~~~~~~~~ " Fixes: d493058 ("regulator: rpi-panel-v2: Add regulator for 7" Raspberry Pi 720x1280") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Marek Vasut <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 55d9fd9 commit a4eb71f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/regulator/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
11561156
config REGULATOR_RASPBERRYPI_TOUCHSCREEN_V2
11571157
tristate "Raspberry Pi 7-inch touchscreen panel V2 regulator"
11581158
depends on GPIOLIB
1159-
depends on I2C
1159+
depends on I2C && OF
11601160
select GPIO_REGMAP
11611161
select REGMAP_I2C
11621162
help

drivers/regulator/rpi-panel-v2-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static struct i2c_driver rpi_panel_v2_regulator_driver = {
102102
.driver = {
103103
.name = "rpi_touchscreen_v2",
104104
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
105-
.of_match_table = of_match_ptr(rpi_panel_v2_dt_ids),
105+
.of_match_table = rpi_panel_v2_dt_ids,
106106
},
107107
.probe = rpi_panel_v2_i2c_probe,
108108
};

0 commit comments

Comments
 (0)