aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-10-11 07:55:29 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-13 13:54:21 -0500
commiteae9a9c85b106163b293bf8b0fec44943e98677c (patch)
tree356e33fb305130fd29db13013a02d99bbcb2b5d1
parenta32415202f709f39a059f776da28248c499e0bb5 (diff)
mfd: twl6040: Remove unused parameter for twl6040_power_up_completion()
naudint parameter has not been used, remove it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/twl6040-core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/twl6040-core.c b/drivers/mfd/twl6040-core.c
index b220aa241911..a46d987b9c8b 100644
--- a/drivers/mfd/twl6040-core.c
+++ b/drivers/mfd/twl6040-core.c
@@ -218,8 +218,7 @@ static irqreturn_t twl6040_naudint_handler(int irq, void *data)
218 return IRQ_HANDLED; 218 return IRQ_HANDLED;
219} 219}
220 220
221static int twl6040_power_up_completion(struct twl6040 *twl6040, 221static int twl6040_power_up_completion(struct twl6040 *twl6040)
222 int naudint)
223{ 222{
224 int time_left; 223 int time_left;
225 u8 intid; 224 u8 intid;
@@ -241,7 +240,6 @@ static int twl6040_power_up_completion(struct twl6040 *twl6040,
241int twl6040_power(struct twl6040 *twl6040, int on) 240int twl6040_power(struct twl6040 *twl6040, int on)
242{ 241{
243 int audpwron = twl6040->audpwron; 242 int audpwron = twl6040->audpwron;
244 int naudint = twl6040->irq;
245 int ret = 0; 243 int ret = 0;
246 244
247 mutex_lock(&twl6040->mutex); 245 mutex_lock(&twl6040->mutex);
@@ -255,7 +253,7 @@ int twl6040_power(struct twl6040 *twl6040, int on)
255 /* use AUDPWRON line */ 253 /* use AUDPWRON line */
256 gpio_set_value(audpwron, 1); 254 gpio_set_value(audpwron, 1);
257 /* wait for power-up completion */ 255 /* wait for power-up completion */
258 ret = twl6040_power_up_completion(twl6040, naudint); 256 ret = twl6040_power_up_completion(twl6040);
259 if (ret) { 257 if (ret) {
260 dev_err(twl6040->dev, 258 dev_err(twl6040->dev,
261 "automatic power-up failed\n"); 259 "automatic power-up failed\n");