[<prev] [next>] [day] [month] [year] [list]
Message-Id: <E1Qqp9d-00012N-Dm@outmx01.plus.net>
Date: Tue, 09 Aug 2011 16:27:43 +0000
From: "Paul Parsons" <lost.distance@...oo.com>
To: <linux-kernel@...r.kernel.org>
Cc: <philipp.zabel@...il.com>, <sameo@...ux.intel.com>,
<mad_soft@...ox.ru>, <koen@...inion.thruhere.net>
Subject: [PATCH] mfd: asic3: Make asic3_clk_enable() a void function
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@...oo.com>
---
diff -uprN clean-3.0.1/drivers/mfd/asic3.c linux-3.0.1/drivers/mfd/asic3.c
--- clean-3.0.1/drivers/mfd/asic3.c 2011-08-05 05:59:21.000000000 +0100
+++ linux-3.0.1/drivers/mfd/asic3.c 2011-08-08 11:18:38.853875362 +0100
@@ -584,7 +584,7 @@ static int asic3_gpio_remove(struct plat
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;
@@ -596,8 +596,6 @@ static int asic3_clk_enable(struct asic3
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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists