aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-10-10 13:33:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 09:33:50 -0400
commit7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b (patch)
tree577f9d63b2b09701efa570236bbf04e0be5c8b11 /drivers/media/platform
parent32d640dea87bc973b91975ea408a04c6dcca3f45 (diff)
[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.c14
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 cb2eb26850b1..ec476ef5b709 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 = {
1050 .probe = bcap_probe, 1050 .probe = bcap_probe,
1051 .remove = __devexit_p(bcap_remove), 1051 .remove = __devexit_p(bcap_remove),
1052}; 1052};
1053 1053module_platform_driver(bcap_driver);
1054static __init int bcap_init(void)
1055{
1056 return platform_driver_register(&bcap_driver);
1057}
1058
1059static __exit void bcap_exit(void)
1060{
1061 platform_driver_unregister(&bcap_driver);
1062}
1063
1064module_init(bcap_init);
1065module_exit(bcap_exit);
1066 1054
1067MODULE_DESCRIPTION("Analog Devices blackfin video capture driver"); 1055MODULE_DESCRIPTION("Analog Devices blackfin video capture driver");
1068MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>"); 1056MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");