Skip to content

Commit

Permalink
[media] [3.6.0-,3/5] media/mx2_emmaprp: 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 50509e5 commit 0e368f3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/media/platform/mx2_emmaprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,16 +1013,4 @@ static struct platform_driver emmaprp_pdrv = {
.owner = THIS_MODULE,
},
};

static void __exit emmaprp_exit(void)
{
platform_driver_unregister(&emmaprp_pdrv);
}

static int __init emmaprp_init(void)
{
return platform_driver_register(&emmaprp_pdrv);
}

module_init(emmaprp_init);
module_exit(emmaprp_exit);
module_platform_driver(emmaprp_pdrv);

0 comments on commit 0e368f3

Please sign in to comment.