Skip to content

Commit

Permalink
Video / bf54x-lq043fb: Use module_platform_driver() to simplify code
Browse files Browse the repository at this point in the history
Convert to module_platform_driver() to simplify code.

Signed-off-by: Hanjun Guo <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
  • Loading branch information
hanjun-guo authored and tomba committed Sep 30, 2013
1 parent 46fc950 commit fbc0156
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/video/bf54x-lq043fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,19 +761,7 @@ static struct platform_driver bfin_bf54x_driver = {
.owner = THIS_MODULE,
},
};

static int __init bfin_bf54x_driver_init(void)
{
return platform_driver_register(&bfin_bf54x_driver);
}

static void __exit bfin_bf54x_driver_cleanup(void)
{
platform_driver_unregister(&bfin_bf54x_driver);
}
module_platform_driver(bfin_bf54x_driver);

MODULE_DESCRIPTION("Blackfin BF54x TFT LCD Driver");
MODULE_LICENSE("GPL");

module_init(bfin_bf54x_driver_init);
module_exit(bfin_bf54x_driver_cleanup);

0 comments on commit fbc0156

Please sign in to comment.