Skip to content

Commit

Permalink
mfd: twl6040: Remove unused parameter for twl6040_power_up_completion()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Samuel Ortiz committed Nov 13, 2012
1 parent a324152 commit eae9a9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/mfd/twl6040-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ static irqreturn_t twl6040_naudint_handler(int irq, void *data)
return IRQ_HANDLED;
}

static int twl6040_power_up_completion(struct twl6040 *twl6040,
int naudint)
static int twl6040_power_up_completion(struct twl6040 *twl6040)
{
int time_left;
u8 intid;
Expand All @@ -241,7 +240,6 @@ static int twl6040_power_up_completion(struct twl6040 *twl6040,
int twl6040_power(struct twl6040 *twl6040, int on)
{
int audpwron = twl6040->audpwron;
int naudint = twl6040->irq;
int ret = 0;

mutex_lock(&twl6040->mutex);
Expand All @@ -255,7 +253,7 @@ int twl6040_power(struct twl6040 *twl6040, int on)
/* use AUDPWRON line */
gpio_set_value(audpwron, 1);
/* wait for power-up completion */
ret = twl6040_power_up_completion(twl6040, naudint);
ret = twl6040_power_up_completion(twl6040);
if (ret) {
dev_err(twl6040->dev,
"automatic power-up failed\n");
Expand Down

0 comments on commit eae9a9c

Please sign in to comment.