linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3] staging: nvec: remove use of clk_get_sys
@ 2013-01-11 21:03 Stephen Warren
       [not found] ` <1357938234-16570-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-01-11 21:03 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Marc Dietrich, Julian Andres Klode,
	ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Prashant Gaikwad,
	Stephen Warren

From: Prashant Gaikwad <pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
[swarren: updated TODO file to remove entry that requested this change]
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
Note: This patch needs to go through the Tegra tree due to dependencies
on the clock driver rework there.

v3: Added update to TODO file

 drivers/staging/nvec/TODO   |    4 ----
 drivers/staging/nvec/nvec.c |    2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/staging/nvec/TODO b/drivers/staging/nvec/TODO
index f950ab8..e5ae42a 100644
--- a/drivers/staging/nvec/TODO
+++ b/drivers/staging/nvec/TODO
@@ -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
diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
index d51615b..9417941 100644
--- a/drivers/staging/nvec/nvec.c
+++ b/drivers/staging/nvec/nvec.c
@@ -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;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH V3] staging: nvec: remove use of clk_get_sys
       [not found] ` <1357938234-16570-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-01-12  0:43   ` Greg Kroah-Hartman
       [not found]     ` <20130112004350.GB2578-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
  2013-01-12 19:41   ` Julian Andres Klode
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2013-01-12  0:43 UTC (permalink / raw)
  To: Stephen Warren
  Cc: devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b, Prashant Gaikwad,
	Stephen Warren, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt

On Fri, Jan 11, 2013 at 02:03:54PM -0700, Stephen Warren wrote:
> From: Prashant Gaikwad <pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> 
> 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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> [swarren: updated TODO file to remove entry that requested this change]
> Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> Note: This patch needs to go through the Tegra tree due to dependencies
> on the clock driver rework there.

Fine with me:
	Acked-by: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V3] staging: nvec: remove use of clk_get_sys
       [not found]     ` <20130112004350.GB2578-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
@ 2013-01-12 12:03       ` Marc Dietrich
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Dietrich @ 2013-01-12 12:03 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Stephen Warren, devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b,
	Prashant Gaikwad, Stephen Warren,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

On Friday 11 January 2013 16:43:50 Greg Kroah-Hartman wrote:
> On Fri, Jan 11, 2013 at 02:03:54PM -0700, Stephen Warren wrote:
> > From: Prashant Gaikwad <pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > 
> > 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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > [swarren: updated TODO file to remove entry that requested this change]
> > Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > ---
> > Note: This patch needs to go through the Tegra tree due to dependencies
> > on the clock driver rework there.
> 
> Fine with me:
> 	Acked-by: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>

and me too:

Acked-by: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V3] staging: nvec: remove use of clk_get_sys
       [not found] ` <1357938234-16570-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  2013-01-12  0:43   ` Greg Kroah-Hartman
@ 2013-01-12 19:41   ` Julian Andres Klode
  1 sibling, 0 replies; 4+ messages in thread
From: Julian Andres Klode @ 2013-01-12 19:41 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Greg Kroah-Hartman, Marc Dietrich,
	ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Prashant Gaikwad,
	Stephen Warren

On Fri, Jan 11, 2013 at 02:03:54PM -0700, Stephen Warren wrote:
> From: Prashant Gaikwad <pgaikwad-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> 
> 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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> [swarren: updated TODO file to remove entry that requested this change]
> Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> Note: This patch needs to go through the Tegra tree due to dependencies
> on the clock driver rework there.

Looks fine to me, and one thing less on TODO is always good.

Acked-by: Julian Andres Klode <jak-4HMq4SXA452hPH1hqNUYSQ@public.gmane.org>
-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-12 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 21:03 [PATCH V3] staging: nvec: remove use of clk_get_sys Stephen Warren
     [not found] ` <1357938234-16570-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-01-12  0:43   ` Greg Kroah-Hartman
     [not found]     ` <20130112004350.GB2578-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-01-12 12:03       ` Marc Dietrich
2013-01-12 19:41   ` Julian Andres Klode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).