regulator: rpi-panel-v2: Fix missing OF dependency
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 9 Jun 2025 22:30:00 +0000 (00:30 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 11 Jun 2025 11:46:06 +0000 (12:46 +0100)
commita4eb71ff98c4792f441f108910bd829da7a04092
treea3b1963cbc86648555f66d174286d5d5754f8c0f
parent55d9fd9819de09e70401b3b5262ff46d5de951b7
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: d49305862fdc ("regulator: rpi-panel-v2: Add regulator for 7" Raspberry Pi 720x1280")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506100440.fyTGO7CG-lkp@intel.com/
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Link: https://patch.msgid.link/20250609223012.87764-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/rpi-panel-v2-regulator.c