ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()
authorTony Lindgren <tony@atomide.com>
Tue, 24 Sep 2019 23:19:00 +0000 (16:19 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 25 Sep 2019 17:07:27 +0000 (10:07 -0700)
commitcf395f7ddb9ebc6b2d28d83b53d18aa4e7c19701
tree40194aa3679f08d90f583277a9a86feeac48d5ca
parent17529d43b21c72466e9109d602c6f5c360a1a9e8
ARM: OMAP2+: Fix warnings with broken omap2_set_init_voltage()

This code is currently unable to find the dts opp tables as ti-cpufreq
needs to set them up first based on speed binning.

We stopped initializing the opp tables with platform code years ago for
device tree based booting with commit 92d51856d740 ("ARM: OMAP3+: do not
register non-dt OPP tables for device tree boot"), and all of mach-omap2
is now booting using device tree.

We currently get the following errors on init:

omap2_set_init_voltage: unable to find boot up OPP for vdd_mpu
omap2_set_init_voltage: unable to set vdd_mpu
omap2_set_init_voltage: unable to find boot up OPP for vdd_core
omap2_set_init_voltage: unable to set vdd_core
omap2_set_init_voltage: unable to find boot up OPP for vdd_iva
omap2_set_init_voltage: unable to set vdd_iva

Let's just drop the unused code. Nowadays ti-cpufreq should be used to
to initialize things properly.

Cc: Adam Ford <aford173@gmail.com>
Cc: André Roth <neolynx@gmail.com>
Cc: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Tested-by: Adam Ford <aford173@gmail.com> #logicpd-torpedo-37xx-devkit
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm.c