projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3b4a3
)
[media] sh_veu: Use module_platform_driver_probe macro
author
Sachin Kamat
<
[email protected]
>
Tue, 5 Mar 2013 04:53:36 +0000
(
01:53
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 21 Mar 2013 17:35:39 +0000
(14:35 -0300)
module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Guennadi Liakhovetski <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/platform/sh_veu.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/sh_veu.c
b/drivers/media/platform/sh_veu.c
index 362d88ec6ea12ebc7cadfd2dc5c3af5d9793b6bb..0b32cc3f6a4749bb93599e8094f785ef237bd764 100644
(file)
--- a/
drivers/media/platform/sh_veu.c
+++ b/
drivers/media/platform/sh_veu.c
@@
-1249,18
+1249,7
@@
static struct platform_driver __refdata sh_veu_pdrv = {
},
};
-static int __init sh_veu_init(void)
-{
- return platform_driver_probe(&sh_veu_pdrv, sh_veu_probe);
-}
-
-static void __exit sh_veu_exit(void)
-{
- platform_driver_unregister(&sh_veu_pdrv);
-}
-
-module_init(sh_veu_init);
-module_exit(sh_veu_exit);
+module_platform_driver_probe(sh_veu_pdrv, sh_veu_probe);
MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver");
MODULE_AUTHOR("Guennadi Liakhovetski, <
[email protected]
>");