staging: nvec: fix clock setup
authorMarc Dietrich <marvin24@gmx.de>
Sun, 19 Aug 2012 17:03:06 +0000 (19:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 20:18:14 +0000 (13:18 -0700)
commit 30b68231 "ARM: tegra: clock: add i2c fast clock entry in clock table"
added a new clock for the i2c controllers, so clock requests are no longer
conclusive. Fix this by specifying "div-clk" explicitly.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c

index fb52fe0d13ce6b462c5aeba4aad03a03dd69125e..3e090ecc2eac364a4407a603a5107986e962264f 100644 (file)
@@ -770,7 +770,7 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)
                return -ENODEV;
        }
 
-       i2c_clk = clk_get_sys("tegra-i2c.2", NULL);
+       i2c_clk = clk_get_sys("tegra-i2c.2", "div-clk");
        if (IS_ERR(i2c_clk)) {
                dev_err(nvec->dev, "failed to get controller clock\n");
                return -ENODEV;