@@ -55,7 +55,7 @@
* These can share data since they will never be present simultaneously
* on the same device.
*/
-static struct clkdm_dep gfx_sgx_wkdeps[] = {
+static __attribute__ ((unused)) struct clkdm_dep gfx_sgx_wkdeps[] = {
{
.clkdm_name = "core_l3_clkdm",
.omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX)
@@ -49,7 +49,7 @@ struct omap_mux_entry {
struct list_head node;
};
-static unsigned long mux_phys;
+static __attribute__ ((unused)) unsigned long mux_phys;
static void __iomem *mux_base;
u16 omap_mux_read(u16 reg)
@@ -2071,7 +2071,7 @@ void omap2_gpio_prepare_for_retention(void)
* IRQs will be generated. See OMAP2420 Errata item 1.101. */
for (i = 0; i < gpio_bank_count; i++) {
struct gpio_bank *bank = &gpio_bank[i];
- u32 l1, l2;
+ u32 l1 = 0, l2 = 0;
if (!(bank->enabled_non_wakeup_gpios))
continue;
@@ -2128,7 +2128,7 @@ void omap2_gpio_resume_after_retention(void)
return;
for (i = 0; i < gpio_bank_count; i++) {
struct gpio_bank *bank = &gpio_bank[i];
- u32 l, gen, gen0, gen1;
+ u32 l = 0, gen, gen0, gen1;
if (!(bank->enabled_non_wakeup_gpios))
continue;