[PATCH] gpio: janzttl: use devm function

2014-05-13 Thread abdoulaye berthe
This uses dem function for mem allocation Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-janz-ttl.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index 2ecd3a0..daa79e1

[PATCH] gpio: gpioep93xx: use devm functions

2014-05-13 Thread abdoulaye berthe
This uses devm functions for mem allocation Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-ep93xx.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 80829f3..dd39f27

[PATCH] gpio: gpio-bt8xx: fix compilation warning

2014-05-14 Thread abdoulaye berthe
this fixes a compilation warning by checking the retun value of gpiochip_remove() Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-bt8xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c index ecb3ca2d..5480229

[PATCH 809/809] drivers: bus: omap_l3: replacing kzalloc with devm_kzalloc This replace kzalloc with devm_kzalloc and remove kfree

2014-05-08 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/bus/omap_l3_noc.c | 11 +++ drivers/bus/omap_l3_smx.c | 11 +++ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index feeecae..d25d727 100644 --- a/drivers/bus

[PATCH] gpio: use devm function for memory allocation

2014-05-12 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-bt8xx.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-bt8xx.c b/drivers/gpio/gpio-bt8xx.c index ecb3ca2d..6557147 100644 --- a/drivers/gpio/gpio-bt8xx.c +++ b/drivers/gpio/gpio

[PATCH] gpio: using devm functions for timberdale gpio memory allocation This eases memory allocation and provides appropriate logging

2014-05-12 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-timberdale.c | 47 ++ 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/drivers/gpio/gpio-timberdale.c b/drivers/gpio/gpio-timberdale.c index f9a8fbd..efc7c12 100644 --- a/drivers/gpio

[PATCH 1/1] gpio: remove all usage of gpio_remove retval in driver/gpio

2014-07-12 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-74x164.c | 8 +++- drivers/gpio/gpio-adnp.c | 9 + drivers/gpio/gpio-adp5520.c| 8 +--- drivers/gpio/gpio-adp5588.c| 6 +- drivers/gpio/gpio-amd8111.c| 3 +-- drivers/gpio/gpio-arizona.c| 3

[PATCH 0/3] remove all usage of gpio_remove retval

2014-07-12 Thread abdoulaye berthe
This removes all usage of gpio_remove retval driver/gpio: 0001-gpio-remove-all-usage-of-gpio_remove-retval-in-drive driver/pinctl: 0002-pinctrl-remove-all-usage-of-gpio_remove-ret-val-in-d all the rest: 0003-driver-gpio-remove-all-usage-of-gpio_remove-retval-i abdoulaye berthe (1): driver:gpio

[PATCH 3/3] driver:gpio remove all usage of gpio_remove retval in driver

2014-07-12 Thread abdoulaye berthe
this remove all reference to gpio_remove retval in all driver except pinctrl and gpio. the same thing is done for gpio and pinctrl in two different patches. Signed-off-by: abdoulaye berthe --- arch/arm/common/scoop.c| 10 ++ arch/mips/txx9/generic/setup.c

[PATCH 2/2] pinctrl: remove all usage of gpio_remove ret val in driver/pinctl

2014-07-12 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/pinctrl/pinctrl-adi2.c | 9 - drivers/pinctrl/pinctrl-as3722.c | 11 ++- drivers/pinctrl/pinctrl-baytrail.c | 5 + drivers/pinctrl/pinctrl-coh901.c | 10 ++ drivers/pinctrl/pinctrl-rockchip.c

[PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-07-05 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

Re: [PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-06-09 Thread abdoulaye berthe
How about using the interface tracker described in the link bellow ? https://lkml.org/lkml/2014/5/5/55 Abdoulaye. On Sun, Jun 8, 2014 at 2:12 PM, Alexandre Courbot wrote: > On Thu, Jun 5, 2014 at 3:22 AM, abdoulaye berthe wrote: >> This avoids handling gpiochip remove error

[PATCH] bus: omap_l3_noc.c: use devm functions

2014-05-22 Thread abdoulaye berthe
This uses devm function to ease mem alloc Signed-off-by: abdoulaye berthe --- drivers/bus/omap_l3_noc.c | 73 +++ 1 file changed, 17 insertions(+), 56 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index feeecae

[PATCH] bus: omap_l3_noc.c: use devm functions

2014-05-23 Thread abdoulaye berthe
This uses devm function to ease mem alloc Signed-off-by: abdoulaye berthe --- drivers/bus/omap_l3_noc.c | 85 +-- 1 file changed, 23 insertions(+), 62 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index feeecae

[PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-23 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

[PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-23 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

Re: [PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-23 Thread abdoulaye berthe
If this step is ok I will continue by updating the codes that use it. On Fri, May 23, 2014 at 7:12 PM, abdoulaye berthe wrote: > This avoids handling gpiochip remove error in device > remove handler. > > Signed-off-by: abdoulaye berthe > --- > drivers/gpio/g

Re: [PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-25 Thread abdoulaye berthe
at 9:46 AM, Alexandre Courbot wrote: > On Sat, May 24, 2014 at 2:12 AM, abdoulaye berthe wrote: >> This avoids handling gpiochip remove error in device >> remove handler. > > Be aware that at the moment many callers of gpiochip_remove() read its > return value. So applyin

[PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-29 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

[PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-30 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

[PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-30 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

[PATCH 0/2] gpiochip remove

2014-06-04 Thread abdoulaye berthe
gpiochip_remove from int to void. abdoulaye berthe (2): gpio: removes all usage of gpiochip_remove retval gpio: gpiolib: set gpiochip_remove retval to void arch/arm/common/scoop.c| 10 ++ arch/mips/txx9/generic/setup.c | 4 ++-- arch/powerpc

[PATCH 2/2] gpio: gpiolib: set gpiochip_remove retval to void

2014-06-04 Thread abdoulaye berthe
This avoids handling gpiochip remove error in device remove handler. Signed-off-by: abdoulaye berthe --- drivers/gpio/gpiolib.c | 24 +++- include/linux/gpio/driver.h | 2 +- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib.c b

Re: [PATCH 0/2] gpiochip remove

2014-06-04 Thread abdoulaye berthe
I didn't modify the panic in the second patch as the initial goal of the patch was to avoid logging a message and continue as nothing happens however that happens to be a bad idea compared to a new proposal, I am ready to change it. On Wed, Jun 4, 2014 at 8:22 PM, abdoulaye berthe wrote: