Skip to contentSkip to conversation

ARM: OMAP: twl4030: make power_companion_init static

PATCH In review Kevin Hilman 2 participants 2 messages Jul 31, 2007 – Aug 10, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: twl4030: make power_companion_init static

This is not used outside twl4030, make it static.

---
 drivers/i2c/chips/twl4030_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/chips/twl4030_core.c +1 -1
Index: linux-2.6.21/drivers/i2c/chips/twl4030_core.c
===================================================================
@@ -669,7 +669,7 @@ static int unprotect_pm_master(void)
 	return e;
 }
 
-int power_companion_init(void)
+static int power_companion_init(void)
 {
 	struct clk *osc;
 	u32 rate, ctrl = HFCLK_FREQ_26_MHZ;

--

#1 lore raw
Quoted 12 lines · Kevin Hilman

This is not used outside twl4030, make it static.

---
 drivers/i2c/chips/twl4030_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.21/drivers/i2c/chips/twl4030_core.c
===================================================================

drivers/i2c/chips/twl4030_core.c static int unprotect_pm_master(void) · line 675

Quoted 8 lines
drivers/i2c/chips/twl4030_core.c +1 -1
@@ -669,7 +669,7 @@ static int unprotect_pm_master(void)
 	return e;
 }
 
-int power_companion_init(void)
+static int power_companion_init(void)
 {
 	struct clk *osc;
 	u32 rate, ctrl = HFCLK_FREQ_26_MHZ;

Pushing today.

Tony