Commit 5c76233c authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

TWL4030: mark init-only functions as __init

Mark many functions in twl4030-core.c as __init.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 46def743
...@@ -693,7 +693,8 @@ static void do_twl4030_irq(unsigned int irq, irq_desc_t *desc) ...@@ -693,7 +693,8 @@ static void do_twl4030_irq(unsigned int irq, irq_desc_t *desc)
} }
/* attach a client to the adapter */ /* attach a client to the adapter */
static int twl4030_detect_client(struct i2c_adapter *adapter, unsigned char sid) static int __init twl4030_detect_client(struct i2c_adapter *adapter,
unsigned char sid)
{ {
int err = 0; int err = 0;
struct twl4030_client *twl; struct twl4030_client *twl;
...@@ -742,7 +743,7 @@ static int twl4030_detect_client(struct i2c_adapter *adapter, unsigned char sid) ...@@ -742,7 +743,7 @@ static int twl4030_detect_client(struct i2c_adapter *adapter, unsigned char sid)
} }
/* adapter callback */ /* adapter callback */
static int twl4030_attach_adapter(struct i2c_adapter *adapter) static int __init twl4030_attach_adapter(struct i2c_adapter *adapter)
{ {
int i; int i;
int ret = 0; int ret = 0;
...@@ -795,7 +796,7 @@ static int twl4030_detach_client(struct i2c_client *client) ...@@ -795,7 +796,7 @@ static int twl4030_detach_client(struct i2c_client *client)
return 0; return 0;
} }
static struct task_struct *start_twl4030_irq_thread(int irq) static struct task_struct * __init start_twl4030_irq_thread(int irq)
{ {
struct task_struct *thread; struct task_struct *thread;
...@@ -813,7 +814,7 @@ static struct task_struct *start_twl4030_irq_thread(int irq) ...@@ -813,7 +814,7 @@ static struct task_struct *start_twl4030_irq_thread(int irq)
* These three functions should be part of Voltage frame work * These three functions should be part of Voltage frame work
* added here to complete the functionality for now. * added here to complete the functionality for now.
*/ */
static int protect_pm_master(void) static int __init protect_pm_master(void)
{ {
int e = 0; int e = 0;
...@@ -822,7 +823,7 @@ static int protect_pm_master(void) ...@@ -822,7 +823,7 @@ static int protect_pm_master(void)
return e; return e;
} }
static int unprotect_pm_master(void) static int __init unprotect_pm_master(void)
{ {
int e = 0; int e = 0;
...@@ -833,7 +834,7 @@ static int unprotect_pm_master(void) ...@@ -833,7 +834,7 @@ static int unprotect_pm_master(void)
return e; return e;
} }
static int power_companion_init(void) static int __init power_companion_init(void)
{ {
struct clk *osc; struct clk *osc;
u32 rate; u32 rate;
...@@ -878,7 +879,7 @@ static int power_companion_init(void) ...@@ -878,7 +879,7 @@ static int power_companion_init(void)
* status register to ensure that any prior interrupts are cleared. * status register to ensure that any prior interrupts are cleared.
* Returns the status from the I2C read operation. * Returns the status from the I2C read operation.
*/ */
static int twl4030_i2c_clear_isr(u8 mod_no, u8 reg, u8 cor) static int __init twl4030_i2c_clear_isr(u8 mod_no, u8 reg)
{ {
u8 tmp; u8 tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment