Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-01 Thread Felipe Balbi
Hi,

On Mon, Oct 01, 2012 at 01:47:17PM +0300, Andy Shevchenko wrote:
> On Thu, 2012-09-27 at 10:40 +0300, Felipe Balbi wrote: 
> > On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
> > > From: Heikki Krogerus 
> > > 
> > 
> > commit log would be great.
> Will do.
> 
> > >  static struct platform_driver dw_driver = {
> > > + .probe  = dw_probe,
> > 
> > probe's in __init section. This is wrong. You need to change probe
> > __devinit.
> Have you checked this one
> 0272e93f364eac1a30f2831adcaca3dd633d5f14
> 
> Or might be I missed something?

My bad, missed that one. Looks like I need to update my local branch.

Reviewed-by: Felipe Balbi 

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-01 Thread Andy Shevchenko
On Thu, 2012-09-27 at 10:40 +0300, Felipe Balbi wrote: 
> On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
> > From: Heikki Krogerus 
> > 
> 
> commit log would be great.
Will do.

> >  static struct platform_driver dw_driver = {
> > +   .probe  = dw_probe,
> 
> probe's in __init section. This is wrong. You need to change probe
> __devinit.
Have you checked this one
0272e93f364eac1a30f2831adcaca3dd633d5f14

Or might be I missed something?


-- 
Andy Shevchenko 
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-01 Thread Andy Shevchenko
On Thu, 2012-09-27 at 10:40 +0300, Felipe Balbi wrote: 
 On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
  From: Heikki Krogerus heikki.kroge...@linux.intel.com
  
 
 commit log would be great.
Will do.

   static struct platform_driver dw_driver = {
  +   .probe  = dw_probe,
 
 probe's in __init section. This is wrong. You need to change probe
 __devinit.
Have you checked this one
0272e93f364eac1a30f2831adcaca3dd633d5f14

Or might be I missed something?


-- 
Andy Shevchenko andriy.shevche...@linux.intel.com
Intel Finland Oy
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-10-01 Thread Felipe Balbi
Hi,

On Mon, Oct 01, 2012 at 01:47:17PM +0300, Andy Shevchenko wrote:
 On Thu, 2012-09-27 at 10:40 +0300, Felipe Balbi wrote: 
  On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
   From: Heikki Krogerus heikki.kroge...@linux.intel.com
   
  
  commit log would be great.
 Will do.
 
static struct platform_driver dw_driver = {
   + .probe  = dw_probe,
  
  probe's in __init section. This is wrong. You need to change probe
  __devinit.
 Have you checked this one
 0272e93f364eac1a30f2831adcaca3dd633d5f14
 
 Or might be I missed something?

My bad, missed that one. Looks like I need to update my local branch.

Reviewed-by: Felipe Balbi ba...@ti.com

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:46:17PM +0530, viresh kumar wrote:
> On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi  wrote:
> >> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
> 
> >> @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
> >>  #endif
> >>
> >>  static struct platform_driver dw_driver = {
> >> + .probe  = dw_probe,
> >
> > probe's in __init section. This is wrong. You need to change probe
> > __devinit.
> 
> Good one. How can i miss it. :(
> 
> @Andy: Please add my Acked-by: after this change.

after this change you can also add:

Reviewed-by: Felipe Balbi 

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi  wrote:
>> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c

>> @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
>>  #endif
>>
>>  static struct platform_driver dw_driver = {
>> + .probe  = dw_probe,
>
> probe's in __init section. This is wrong. You need to change probe
> __devinit.

Good one. How can i miss it. :(

@Andy: Please add my Acked-by: after this change.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
> From: Heikki Krogerus 
> 

commit log would be great.

> Signed-off-by: Heikki Krogerus 
> Signed-off-by: Andy Shevchenko 
> ---
>  drivers/dma/dw_dmac.c |   13 ++---
>  1 file changed, 2 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
> index c4b0eb3..0b88ced 100644
> --- a/drivers/dma/dw_dmac.c
> +++ b/drivers/dma/dw_dmac.c
> @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
>  #endif
>  
>  static struct platform_driver dw_driver = {
> + .probe  = dw_probe,

probe's in __init section. This is wrong. You need to change probe
__devinit.

>   .remove = __devexit_p(dw_remove),
>   .shutdown   = dw_shutdown,
>   .driver = {
> @@ -1709,17 +1710,7 @@ static struct platform_driver dw_driver = {
>   },
>  };
>  
> -static int __init dw_init(void)
> -{
> - return platform_driver_probe(_driver, dw_probe);
> -}
> -subsys_initcall(dw_init);
> -
> -static void __exit dw_exit(void)
> -{
> - platform_driver_unregister(_driver);
> -}
> -module_exit(dw_exit);
> +module_platform_driver(dw_driver);
>  
>  MODULE_LICENSE("GPL v2");
>  MODULE_DESCRIPTION("Synopsys DesignWare DMA Controller driver");
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 10:31:55AM +0300, Andy Shevchenko wrote:
 From: Heikki Krogerus heikki.kroge...@linux.intel.com
 

commit log would be great.

 Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com
 Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com
 ---
  drivers/dma/dw_dmac.c |   13 ++---
  1 file changed, 2 insertions(+), 11 deletions(-)
 
 diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
 index c4b0eb3..0b88ced 100644
 --- a/drivers/dma/dw_dmac.c
 +++ b/drivers/dma/dw_dmac.c
 @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
  #endif
  
  static struct platform_driver dw_driver = {
 + .probe  = dw_probe,

probe's in __init section. This is wrong. You need to change probe
__devinit.

   .remove = __devexit_p(dw_remove),
   .shutdown   = dw_shutdown,
   .driver = {
 @@ -1709,17 +1710,7 @@ static struct platform_driver dw_driver = {
   },
  };
  
 -static int __init dw_init(void)
 -{
 - return platform_driver_probe(dw_driver, dw_probe);
 -}
 -subsys_initcall(dw_init);
 -
 -static void __exit dw_exit(void)
 -{
 - platform_driver_unregister(dw_driver);
 -}
 -module_exit(dw_exit);
 +module_platform_driver(dw_driver);
  
  MODULE_LICENSE(GPL v2);
  MODULE_DESCRIPTION(Synopsys DesignWare DMA Controller driver);
 -- 
 1.7.10.4
 
 --
 To unsubscribe from this list: send the line unsubscribe linux-kernel in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 Please read the FAQ at  http://www.tux.org/lkml/

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread viresh kumar
On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi ba...@ti.com wrote:
 diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c

 @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
  #endif

  static struct platform_driver dw_driver = {
 + .probe  = dw_probe,

 probe's in __init section. This is wrong. You need to change probe
 __devinit.

Good one. How can i miss it. :(

@Andy: Please add my Acked-by: after this change.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHv3 1/7] dmaengine: dw_dmac: use helper macro module_platform_driver()

2012-09-27 Thread Felipe Balbi
On Thu, Sep 27, 2012 at 01:46:17PM +0530, viresh kumar wrote:
 On Thu, Sep 27, 2012 at 1:10 PM, Felipe Balbi ba...@ti.com wrote:
  diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
 
  @@ -1700,6 +1700,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_id_table);
   #endif
 
   static struct platform_driver dw_driver = {
  + .probe  = dw_probe,
 
  probe's in __init section. This is wrong. You need to change probe
  __devinit.
 
 Good one. How can i miss it. :(
 
 @Andy: Please add my Acked-by: after this change.

after this change you can also add:

Reviewed-by: Felipe Balbi ba...@ti.com

-- 
balbi


signature.asc
Description: Digital signature