staging: nvec: remove use of clk_get_sys
authorPrashant Gaikwad <pgaikwad@nvidia.com>
Fri, 11 Jan 2013 08:01:24 +0000 (13:31 +0530)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 18:19:33 +0000 (11:19 -0700)
As clock information is added to device tree clock can be looked up
using clk_get. Remove use of clk_get_sys.

Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Acked-by: Julian Andres Klode <jak@jak-linux.org>
[swarren: updated TODO file to remove entry that requested this change]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/staging/nvec/TODO
drivers/staging/nvec/nvec.c

index f950ab890e2e217c8b412bc21cfe42a4485d6bc7..e5ae42a0b44a41fbb3efa3e7e58da627f60f60e9 100644 (file)
@@ -1,9 +1,5 @@
 ToDo list (incomplete, unordered)
        - add compile as module support
-       - fix clk usage
-         should not be using clk_get_sys(), but clk_get(&pdev->dev, conn)
-         where conn is either NULL if the device only has one clock, or
-         the device specific name if it has multiple clocks.
        - move half of the nvec init stuff to i2c-tegra.c
        - move event handling to nvec_events
        - finish suspend/resume support
index d51615b1979714197f68d8b1f535e8637ce7561b..9417941974f72e195ea68f9158e02233454961da 100644 (file)
@@ -770,7 +770,7 @@ static int tegra_nvec_probe(struct platform_device *pdev)
                return -ENODEV;
        }
 
-       i2c_clk = clk_get_sys("tegra-i2c.2", "div-clk");
+       i2c_clk = clk_get(&pdev->dev, "div-clk");
        if (IS_ERR(i2c_clk)) {
                dev_err(nvec->dev, "failed to get controller clock\n");
                return -ENODEV;