Re: [PATCH 09/13] AT91: PIT: (Almost) remove the global variables

2014-06-26 Thread Maxime Ripard
Hi Boris, On Thu, Jun 26, 2014 at 07:12:06AM +0200, Boris BREZILLON wrote: > Hello Maxime, > > On 25/06/2014 15:06, Maxime Ripard wrote: > > The timer driver is using some global variables to define some variables it > > has > > to use in most of its functions, like the base address. > > > > Use

Re: [PATCH 09/13] AT91: PIT: (Almost) remove the global variables

2014-06-25 Thread Boris BREZILLON
Hello Maxime, On 25/06/2014 15:06, Maxime Ripard wrote: > The timer driver is using some global variables to define some variables it > has > to use in most of its functions, like the base address. > > Use some container_of calls to have a single dynamic (and local) variable to > hold this conten

[PATCH 09/13] AT91: PIT: (Almost) remove the global variables

2014-06-25 Thread Maxime Ripard
The timer driver is using some global variables to define some variables it has to use in most of its functions, like the base address. Use some container_of calls to have a single dynamic (and local) variable to hold this content. The only exception is in the !DT case, where the call chain to at