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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
25 matches
Mail list logo