[PATCH] crypto: atmel-sha: Switch to managed version of kzalloc

2014-07-28 Thread pramod . gurav . etc
From: Pramod Gurav This patch switches data allocation from kzalloc to devm_kzalloc. It also removed some kfree() on data that was earlier allocated using devm_kzalloc(). CC: Herbert Xu CC: "David S. Miller" CC: Grant Likely CC: Rob Herring CC: Nicolas Ferre Signed-off-by: Pramod Gurav --

[PATCH] crypto: atmel-tdes: Switch to managed version of kzalloc

2014-07-28 Thread pramod . gurav . etc
From: Pramod Gurav This patch switches data allocation from kzalloc to devm_kzalloc. It also removes some kfree() on data that was earlier allocated using devm_kzalloc() from probe as well as remove funtions. CC: Herbert Xu CC: "David S. Miller" CC: Grant Likely CC: Rob Herring Signed-off-b

[PATCH] input: ads7846: Switch to managed version of kzalloc and cleanups

2014-07-28 Thread pramod . gurav . etc
From: Pramod Gurav This switches memory allocations from kzalloc to devm_kzalloc. This also changes the way return checks were done on failure cases of three allocations. The checks were clubbed together and hence must be done seperately to avoid calling kfree on unallocated memory. Moreover in

[PATCH v2] Input: soc_button_array: Remove kfree on data allocated with devm_zalloc

2014-07-25 Thread pramod . gurav . etc
From: Pramod Gurav This patch does below: - Removes kfree done on data allocated with devm_zalloc in probe path of the driver. - Adds a check on return value from devm_kzalloc which was missing CC: Dmitry Torokhov CC: Lejun Zhu CC: Sachin Kamat Signed-off-by: Pramod Gurav --- drivers/inp

[PATCH v2] Input: soc_button_array: Remove kfree on data allocated with devm_zalloc

2014-07-25 Thread pramod . gurav . etc
From: Pramod Gurav This patch does below: - Removes kfree done on data allocated with devm_zalloc in probe path of the driver. - Adds a check on return value from devm_kzalloc which was missing - Removes the error lables and instead releases resources and returns after failures CC: Dmitry To

[PATCH] Input: soc_button_array: Remove kfree on data allocated with devm_zalloc

2014-07-25 Thread pramod . gurav . etc
From: Pramod Gurav This patch does below: - Removes kfree done on data allocated with devm_zalloc in probe path of the driver. - Adds a check on return value from devm_kzalloc which was missing and renames a lable from err_free_mem to err_mem. - Adds couple of dev_err on failure to allocate m

[PATCH] crypto: atmel-tdes: Switch to managed version of kzalloc

2014-07-24 Thread pramod . gurav . etc
From: Pramod Gurav This patch switches data allocation from kzalloc to devm_kzalloc. It also removes some kfree() on data that was earlier allocated using devm_kzalloc() from probe as well as remove funtions. CC: Grant Likely CC: Rob Herring Signed-off-by: Pramod Gurav --- drivers/crypto/at

[PATCH] crypto: atmel-sha: Switch to managed version of kzalloc

2014-07-24 Thread pramod . gurav . etc
From: Pramod Gurav This patch switches data allocation from kzalloc to devm_kzalloc. It also removed some kfree() on data that was earlier allocated using devm_kzalloc(). CC: Grant Likely CC: Rob Herring CC: Nicolas Ferre CC: Herbert Xu Signed-off-by: Pramod Gurav --- drivers/crypto/atmel

[PATCH] regmap: Kconfig: Select SPMI when REGMAP_SPMI is selected

2014-07-16 Thread pramod . gurav . etc
From: Pramod Gurav REGMAP_SPMI module calls some functions from SPMI hence build breaks when SPMI is not enabled while compiling REGMAP_SPMI with below linker errors: drivers/built-in.o: In function `regmap_spmi_ext_read': :(.text+0x1143ec): undefined reference to `spmi_ext_register_read' :(.tex

[PATCH] fs/direct-io.c: Fix compilation warning for uninitialized variables

2014-07-03 Thread pramod . gurav . etc
From: Pramod Gurav Fixes below warning while compiling the kernel. fs/direct-io.c: In function ‘__blockdev_direct_IO’: fs/direct-io.c:1011:12: warning: ‘to’ may be used uninitialized in this function [-Wmaybe-uninitialized] fs/direct-io.c:913:16: note: ‘to’ was declared here fs/direct-io.c:1011

[PATCH] staging: alarm-dev: Set the license to GPL

2014-06-20 Thread pramod . gurav . etc
From: Pramod Gurav Adding "GPL" license to fix a warning while compiling as module. CC: Greg Kroah-Hartman CC: Brian Swetland Signed-off-by: Pramod Gurav --- drivers/staging/android/alarm-dev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ala

[PATCH v2 2/2] staging: alarm-dev: Support to Compile as Module

2014-06-12 Thread pramod . gurav . etc
From: Pramod Gurav Currently this alarm-dev can be compiles only as built in driver. This adds support to compile it as module as well which is in planned activity (See drivers/staging/android/TODO) CC: Greg Kroah-Hartman CC: Brian Swetland Signed-off-by: Pramod Gurav --- drivers/staging/an

[PATCH v2 1/2] alarmtimer: Export symbols of alarmtimer_get_rtcdev

2014-06-12 Thread pramod . gurav . etc
From: Pramod Gurav Export symbol of alarmtimer_get_rtcdev so that it is used by any driver when built as module like, drivers/staging/android/alarm-dev.c. CC: John Stultz CC: Marcus Gelderie CC: Greg Kroah-Hartman Signed-off-by: Pramod Gurav --- This Export was missing in Marcus's below pat

[PATCH] staging: alarm-dev: Support to Compile as Module

2014-06-12 Thread pramod . gurav . etc
From: Pramod Gurav Currently this alarm-dev can be compiles only as built in driver. This adds support to compile it as module as well. This has dependancy on: https://lkml.org/lkml/2014/6/12/180 which exports symbol of alarmtimer function. CC: Greg Kroah-Hartman CC: Brian Swetland Signed-off

[PATCH] alarmtimer: Export symbols of alarmtimer_get_rtcdev

2014-06-12 Thread pramod . gurav . etc
From: Pramod Gurav Export symbol of alarmtimer_get_rtcdev so that it is used by any driver when built as module like, drivers/staging/android/alarm-dev.c This Export was missing in Marcus's below patch: https://lkml.org/lkml/2013/6/1/144 CC: triv...@kernel.org CC: John Stultz CC: Marcus Gelder