[PATCH V3 1/2] staging: android: ion_test: unregister the misc device

2015-04-03 Thread Phong Tran
Add the remove() method for deregister from misc device when it's unloaded. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_t

[PATCH V3 2/2] staging: android: ion_test: unregister the platform device

2015-04-03 Thread Phong Tran
The driver has to unregister from platform device when it's unloaded Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_t

[PATCH V3 0/2] Fix some issues of staging ion test driver

2015-04-03 Thread Phong Tran
Hi Greg, I resend 2 patches (1) add the remove() platform driver callback to deregister the misc device (2) unregister platform device when driver is unloaded Changes from v2: Remove the extra space of patch (1) Changes from v1: Imporve the coding style Phong Tran (2): (1

[PATCH V2 3/3] staging: android: ion_test: unregister the platform device

2015-04-02 Thread Phong Tran
The driver has to unregister from platform device when it's unloaded Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_t

[PATCH V2 2/3] staging: android: ion_test: unregister the misc device

2015-04-02 Thread Phong Tran
Add the remove() method for deregister from misc device when it's unloaded. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_t

[PATCH V2 1/3] staging: android: ion_test: Add the MODULE_LICENSE macro

2015-04-02 Thread Phong Tran
Base on the file comment should define GPL v2 for ion test driver Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c index 654acb5..3bc461c

[PATCH V2 0/3] Fix some issues of staging ion test driver

2015-04-02 Thread Phong Tran
oding style Phong Tran (3): staging: android: ion_test: Add the MODULE_LICENSE macro staging: android: ion_test: unregister the misc device staging: android: ion_test: unregister the platform device drivers/staging/android/ion/ion_test.c | 21 - 1 file changed, 20 inser

[PATCH 3/3] staging: android: ion_test: unregister the platform device

2015-04-01 Thread Phong Tran
The driver has to unregister from platform device when it's unloaded Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/androi

[PATCH 2/3] staging: android: ion_test: unregister the misc device

2015-04-01 Thread Phong Tran
Add the remove() method for deregister from misc device when it's unloaded. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/androi

[PATCH 0/3] Fix some issues of staging ion test driver

2015-04-01 Thread Phong Tran
Hi Greg, Arve, Riley, This patcheset fixes: (1) Define the GPL V2 for ion_test driver (2) Add the remove() platform driver callback to deregister the misc device (3) unregister platform device when driver is unloaded Phong Tran (3): staging: android: ion_test: Add the MODULE_LICENSE macro

[PATCH 1/3] staging: android: ion_test: Add the MODULE_LICENSE macro

2015-04-01 Thread Phong Tran
Base on the file comment should define GPL v2 for ion test driver Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion_test.c b/drivers/staging/android/ion/ion_test.c index 654acb5..3bc461c

[PATCH] staging: lustre: lnet: socklnd_cb.c Fix sparse non-static symbol warning

2014-08-19 Thread Phong Tran
This patch fixes some non static function declarations that cause sparse warning. Tested by compilation. Signed-off-by: Phong Tran --- .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging

[PATCH V3 3/3] staging: android: ion: Remove redundant return of void function

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning Tested by compilation only. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion.c | 1 - drivers/staging/android/ion/ion_carveout_heap.c | 1 - drivers/staging/android/ion/ion_chunk_heap.c| 1 - drivers/staging/android/ion

[PATCH V3 1/3] staging: android: ion: ion_dummy_driver.c Replace kzalloc() by kcalloc()

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning Tested by compilation only. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_dummy_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion

[PATCH V3 2/3] staging: android: ion: ion.c Add a new blank line after decleration

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning Tested by compilation only. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 2703609..cad76ae 100644 --- a/drivers

[Patch V2 3/3] staging: android: ion: Fix coding style

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning - Remove the return of void function Tested by compilation. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion.c | 1 - drivers/staging/android/ion/ion_carveout_heap.c | 1 - drivers/staging/android/ion/ion_chunk_heap.c| 1

[Patch V2 1/3] staging: android: ion: ion_dummy_driver.c Fix coding style

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning - Replace kzalloc() by kcalloc() Tested by compilation. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_dummy_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers

[Patch V2 2/3] staging: android: ion: ion.c Fix coding style

2014-08-13 Thread Phong Tran
This patch fix checkpatch.pl warning - Add a new line after decleration Tested by compilation. Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 2703609

staging: android: ion checkpatch.pl cleanups

2014-08-12 Thread Phong Tran
Hi Greg, These patches fix checkpatch warning. Apply for staging-next branch. Regards, Phong. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 4/5] staging: android: ion: ion_carveout_heap.c Fix checkpatch warning

2014-08-12 Thread Phong Tran
This patch fix coding style - Remove return of void function Tested by compilation Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_carveout_heap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_carveout_heap.c b/drivers/staging/android/ion

[PATCH 5/5] staging: android: ion: ion_dummy_driver.c Fix checkpatch warning

2014-08-12 Thread Phong Tran
This patch fix coding style - Replace kzalloc() by kcalloc() - Remove return of void function Tested by compilation Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_dummy_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/android/ion

[PATCH 1/5] staging: android: ion: ion.c Fix checkpatch warning

2014-08-12 Thread Phong Tran
This patch fix the coding style - Add a new line after variable declaration - Remove return of void fuction Tested by compilation Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion

[PATCH 3/5] staging: android: ion: ion_system_heap.c Fix checkpatch warning

2014-08-12 Thread Phong Tran
This patch fix coding rule - Remove return of void function Tested by compilation Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_system_heap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion

[PATCH 2/5] staging: android: ion: ion_chunk_heap.c Fix checkpatch warning

2014-08-12 Thread Phong Tran
This patch fix coding style - Remove return of void function Tested by compilation Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_chunk_heap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion

[PATCH] staging: android: ion: ion_cma_heap.c: Fix checkpatch warning

2014-07-19 Thread Phong Tran
This patch fix coding style: - Remove "fail memory allocation" waring - Remove return of void function Tested by compilation only Signed-off-by: Phong Tran --- drivers/staging/android/ion/ion_cma_heap.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git