ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 15 Oct 2019 13:12:38 +0000 (14:12 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2019 10:33:53 +0000 (11:33 +0100)
The omap_sr_pdata is not declared but is exported, so add a
define for it to fix the following warning:

arch/arm/mach-omap2/pdata-quirks.c:609:36: warning: symbol 'omap_sr_pdata' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/power/smartreflex.h

index d0b37e937037269cc3493dce71fc629d229b802e..971c9264179eec90aa1ab047538f8115be9d560c 100644 (file)
@@ -293,6 +293,9 @@ struct omap_sr_data {
        struct voltagedomain            *voltdm;
 };
 
+
+extern struct omap_sr_data omap_sr_pdata[OMAP_SR_NR];
+
 #ifdef CONFIG_POWER_AVS_OMAP
 
 /* Smartreflex module enable/disable interface */