Skip to content

Commit

Permalink
[media] media/m2m: 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 7f2b3a7 commit 50509e5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/media/platform/m2m-deinterlace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,17 +1108,5 @@ static struct platform_driver deinterlace_pdrv = {
.owner = THIS_MODULE,
},
};

static void __exit deinterlace_exit(void)
{
platform_driver_unregister(&deinterlace_pdrv);
}

static int __init deinterlace_init(void)
{
return platform_driver_register(&deinterlace_pdrv);
}

module_init(deinterlace_init);
module_exit(deinterlace_exit);
module_platform_driver(deinterlace_pdrv);

0 comments on commit 50509e5

Please sign in to comment.