summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2018-10-06 18:40:59 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-09 09:50:19 +0200
commit2d12df47eafe74bf2e22cbbebc0265db7cd47082 (patch)
tree0efa8e0edc77a3e67c5bb2bb181f6e27880e9ee9 /include/linux/power
parent0238df646e6224016a45505d2c111a24669ebe21 (diff)
downloadlinux-2d12df47eafe74bf2e22cbbebc0265db7cd47082.tar.gz
PM / AVS: SmartReflex: remove unused function
omap_sr_register_pmic() was introduced in 2010 in commit 984aa6dbf4ca ("OMAP3: PM: Adding smartreflex driver support.") . There was never any caller of this function in mainline resulting in a warning sr_init: No PMIC hook to init smartreflex for each machine where this driver is enabled. So remove the unused function and the pr_warn. Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/smartreflex.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h
index 7b81dad712de..a586976f4784 100644
--- a/include/linux/power/smartreflex.h
+++ b/include/linux/power/smartreflex.h
@@ -303,9 +303,6 @@ void omap_sr_enable(struct voltagedomain *voltdm);
void omap_sr_disable(struct voltagedomain *voltdm);
void omap_sr_disable_reset_volt(struct voltagedomain *voltdm);
-/* API to register the pmic specific data with the smartreflex driver. */
-void omap_sr_register_pmic(struct omap_sr_pmic_data *pmic_data);
-
/* Smartreflex driver hooks to be called from Smartreflex class driver */
int sr_enable(struct omap_sr *sr, unsigned long volt);
void sr_disable(struct omap_sr *sr);
@@ -320,7 +317,5 @@ static inline void omap_sr_enable(struct voltagedomain *voltdm) {}
static inline void omap_sr_disable(struct voltagedomain *voltdm) {}
static inline void omap_sr_disable_reset_volt(
struct voltagedomain *voltdm) {}
-static inline void omap_sr_register_pmic(
- struct omap_sr_pmic_data *pmic_data) {}
#endif
#endif