summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pnx4008/i2c.c
diff options
context:
space:
mode:
authorRussell King2009-11-20 11:46:24 +0100
committerRussell King2010-02-12 18:32:38 +0100
commitbba2be480b981bc1e7bea24c2a2552b0ad7e9774 (patch)
tree561a133526f62bcf0999ad22d20b0bcb904c6828 /arch/arm/mach-pnx4008/i2c.c
parentARM: PNX4008: convert watchdog to use clk API enable/disable calls (diff)
downloadkernel-qcow2-linux-bba2be480b981bc1e7bea24c2a2552b0ad7e9774.tar.gz
kernel-qcow2-linux-bba2be480b981bc1e7bea24c2a2552b0ad7e9774.tar.xz
kernel-qcow2-linux-bba2be480b981bc1e7bea24c2a2552b0ad7e9774.zip
ARM: PNX4008: convert i2c clocks to match by device only
Acked-by: Vitaly Wool <vitalywool@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pnx4008/i2c.c')
-rw-r--r--arch/arm/mach-pnx4008/i2c.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c
index f3fea29c00d3..c986b3a61311 100644
--- a/arch/arm/mach-pnx4008/i2c.c
+++ b/arch/arm/mach-pnx4008/i2c.c
@@ -21,11 +21,9 @@
static int set_clock_run(struct platform_device *pdev)
{
struct clk *clk;
- char name[10];
int retval = 0;
- snprintf(name, 10, "i2c%d_ck", pdev->id);
- clk = clk_get(&pdev->dev, name);
+ clk = clk_get(&pdev->dev, NULL);
if (!IS_ERR(clk)) {
clk_set_rate(clk, 1);
clk_put(clk);
@@ -38,11 +36,9 @@ static int set_clock_run(struct platform_device *pdev)
static int set_clock_stop(struct platform_device *pdev)
{
struct clk *clk;
- char name[10];
int retval = 0;
- snprintf(name, 10, "i2c%d_ck", pdev->id);
- clk = clk_get(&pdev->dev, name);
+ clk = clk_get(&pdev->dev, NULL);
if (!IS_ERR(clk)) {
clk_set_rate(clk, 0);
clk_put(clk);