Skip to content

Commit

Permalink
[media] media/bfin: use module_platform_driver macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srinivas Kandagatla authored and Mauro Carvalho Chehab committed Oct 27, 2012
1 parent 32d640d commit 7f2b3a7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/media/platform/blackfin/bfin_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
Expand Down

0 comments on commit 7f2b3a7

Please sign in to comment.