[PATCH] staging: wlags49_h2: Fix use of skb after netif_rx

2014-06-21 Thread Himangi Saraogi
= e ( skb = e1 | * skb ) // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/wlags49_h2/wl_netdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index a10d014

[PATCH] Staging: rtl8192e: adjust error handling

2014-06-21 Thread Himangi Saraogi
(...) { ... when != free_netdev(E); return dev; } | * if (...) { ... when != free_netdev(E); return ...; } | register_netdev(E) ) // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/rtl8192e/rtllib_module.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH] iio:trigger: Introduce the use of devm_kzalloc

2014-07-01 Thread Himangi Saraogi
This patch introduces the use of the managed version of kzalloc and removes the kfrees in the probe and remove functions. Also, the labels are renamed to order them. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 19

[PATCH] staging: iio: Introduce the use of devm_ioremap_resource

2014-07-01 Thread Himangi Saraogi
also eliminated. Also, a bug is fixed as the goto in the error handling of request_mem_region should not have called release_mem_region which releases a resource that has not been allocated. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/adc/ad7606_par.c | 37

[PATCH v2] iio:trigger: Introduce the use of devm_kzalloc

2014-07-01 Thread Himangi Saraogi
This patch introduces the use of the managed version of kzalloc and removes the kfrees in the probe and remove functions. More return paths are added and the labels are renamed to order them. Signed-off-by: Himangi Saraogi --- v2: add more return paths Not compile tested. drivers/staging/iio

[PATCH] staging: lirc: Introduce the use of managed interfaces

2014-07-03 Thread Himangi Saraogi
This patch introduces the use of managed interfaces like devm_request_mem_region and devm_request_irq and does away with the calls to free the allocated memory in the probe and remove functions. The remove function is no longer required and is removed completely. Signed-off-by: Himangi Saraogi

[PATCH] staging: goldfish: Introduce the use of managed interfaces

2014-07-04 Thread Himangi Saraogi
: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/goldfish/goldfish_audio.c | 53 --- 1 file changed, 13 insertions(+), 40 deletions(-) diff --git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish/goldfish_audio.c index a166424..9df4ad8

[PATCH] staging: iio: adis16203: Use devm_iio_device_register

2014-07-17 Thread Himangi Saraogi
This patch introduces the use of iio_device_register and does away with the call to the corressponding unregister function in the probe and remove functions of the driver respectively. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/accel/adis16203_core.c | 3

[PATCH] staging:iio:ad7280a: Use managed interfaces

2014-07-19 Thread Himangi Saraogi
also removed. Signed-off-by: Himangi Saraogi --- I am not very sure if devmifying request_irq is a good idea as it leads to the freeing of the interrupt after the ad7280_write. drivers/staging/iio/adc/ad7280a.c | 57 ++- 1 file changed, 20 insertions(+), 37

[PATCH] staging: gdm724x: Use NLMSG_HDRLEN

2014-07-22 Thread Himangi Saraogi
Replace use of NLMSG_SPACE(0) with NLMSG_HDRLEN as they are equivalent and NLMSG_SPACE seems to be deprecated. Signed-off-by: Himangi Saraogi --- To send to: Greg Kroah-Hartman ,de...@driverdev.osuosl.org,linux-ker...@vger.kernel.org drivers/staging/gdm724x/netlink_k.c | 2 +- 1 file changed

[PATCH] staging: iio: ad9832: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/frequency/ad9832.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH] staging:iio:ad9852: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/frequency/ad9852.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a

[PATCH] staging: iio: ad9951: Use devm_iio_device_register

2014-08-03 Thread Himangi Saraogi
This patch introduces the use of devm_iio_device_register and does away with the unregister in the remove function. The remove function is no longer required and is completely removed. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- drivers/staging/iio/frequency/ad9951.c | 10