diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 14:33:38 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 11:33:50 -0200 |
commit | 7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b (patch) | |
tree | 577f9d63b2b09701efa570236bbf04e0be5c8b11 /drivers/media/platform | |
parent | 32d640dea87bc973b91975ea408a04c6dcca3f45 (diff) | |
download | op-kernel-dev-7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b.zip op-kernel-dev-7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b.tar.gz |
[media] media/bfin: use module_platform_driver macro
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/blackfin/bfin_capture.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index cb2eb26..ec476ef 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c @@ -1050,19 +1050,7 @@ static struct platform_driver bcap_driver = { .probe = bcap_probe, .remove = __devexit_p(bcap_remove), }; - -static __init int bcap_init(void) -{ - return platform_driver_register(&bcap_driver); -} - -static __exit void bcap_exit(void) -{ - platform_driver_unregister(&bcap_driver); -} - -module_init(bcap_init); -module_exit(bcap_exit); +module_platform_driver(bcap_driver); MODULE_DESCRIPTION("Analog Devices blackfin video capture driver"); MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>"); |