Skip to content

Commit

Permalink
mfd: Make asic3_clk_enable() a void function
Browse files Browse the repository at this point in the history
The return value of asic3_clk_enable() was neither used nor useful. So let's
make it a void function, and thereby match asic3_clk_disable().

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Paul Parsons authored and Samuel Ortiz committed Oct 24, 2011
1 parent e0b13b5 commit c29a812
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static int asic3_gpio_remove(struct platform_device *pdev)
return gpiochip_remove(&asic->gpio);
}

static int asic3_clk_enable(struct asic3 *asic, struct asic3_clk *clk)
static void asic3_clk_enable(struct asic3 *asic, struct asic3_clk *clk)
{
unsigned long flags;
u32 cdex;
Expand All @@ -596,8 +596,6 @@ static int asic3_clk_enable(struct asic3 *asic, struct asic3_clk *clk)
asic3_write_register(asic, ASIC3_OFFSET(CLOCK, CDEX), cdex);
}
spin_unlock_irqrestore(&asic->lock, flags);

return 0;
}

static void asic3_clk_disable(struct asic3 *asic, struct asic3_clk *clk)
Expand Down

0 comments on commit c29a812

Please sign in to comment.