RE: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-07 Thread li.xi...@freescale.com
> > drivers/pwm/core.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c > > index 2ca9504..74c9f9a 100644 > > --- a/drivers/pwm/core.c > > +++ b/drivers/pwm/core.c > > @@ -80,7 +80,6 @@ static void free_pwms(struct

Re: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-07 Thread Dmitry Torokhov
Hi Xiubo, On Tue, Jan 07, 2014 at 02:05:00PM +0800, Xiubo Li wrote: > Use devm_kzalloc instead of kzalloc to free automatically and make > the cleanup paths simpler and the code slightly shorter. > > Signed-off-by: Xiubo Li > --- > drivers/pwm/core.c | 5 +++-- > 1 file changed, 3

Re: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-07 Thread Dmitry Torokhov
Hi Xiubo, On Tue, Jan 07, 2014 at 02:05:00PM +0800, Xiubo Li wrote: Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/pwm/core.c | 5 +++-- 1 file changed,

RE: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-07 Thread li.xi...@freescale.com
drivers/pwm/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 2ca9504..74c9f9a 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -80,7 +80,6 @@ static void free_pwms(struct pwm_chip *chip)

RE: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread li.xi...@freescale.com
> > Use devm_kzalloc instead of kzalloc to free automatically and make > > the cleanup paths simpler and the code slightly shorter. > [] > > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c > [] > > @@ -245,7 +244,9 @@ int pwmchip_add(struct pwm_chip *chip) > > if (ret < 0) > >

Re: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread Joe Perches
On Tue, 2014-01-07 at 14:05 +0800, Xiubo Li wrote: > Use devm_kzalloc instead of kzalloc to free automatically and make > the cleanup paths simpler and the code slightly shorter. [] > diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c [] > @@ -245,7 +244,9 @@ int pwmchip_add(struct pwm_chip

[PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread Xiubo Li
Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. Signed-off-by: Xiubo Li --- drivers/pwm/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index

[PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread Xiubo Li
Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. Signed-off-by: Xiubo Li li.xi...@freescale.com --- drivers/pwm/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c

Re: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread Joe Perches
On Tue, 2014-01-07 at 14:05 +0800, Xiubo Li wrote: Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. [] diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c [] @@ -245,7 +244,9 @@ int pwmchip_add(struct pwm_chip *chip)

RE: [PATCH] pwm: core: Use devm_kzalloc instead of kzalloc

2014-01-06 Thread li.xi...@freescale.com
Use devm_kzalloc instead of kzalloc to free automatically and make the cleanup paths simpler and the code slightly shorter. [] diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c [] @@ -245,7 +244,9 @@ int pwmchip_add(struct pwm_chip *chip) if (ret 0) goto out;