You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
video: convert drivers/video/* to use module_platform_driver()
This patch converts the drivers in drivers/video/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Ben Dooks <ben@simtec.co.uk> Cc: Manuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Wan ZongShun <mcuos.com@gmail.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Acked-by: Alexey Charkov <alchark@gmail.com> Acked-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
committed by
Florian Tobias Schandinat
parent
9056df19c2
commit
4277f2c466
@@ -457,18 +457,7 @@ static struct platform_driver vt8500lcd_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init vt8500lcd_init(void)
|
||||
{
|
||||
return platform_driver_register(&vt8500lcd_driver);
|
||||
}
|
||||
|
||||
static void __exit vt8500lcd_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&vt8500lcd_driver);
|
||||
}
|
||||
|
||||
module_init(vt8500lcd_init);
|
||||
module_exit(vt8500lcd_exit);
|
||||
module_platform_driver(vt8500lcd_driver);
|
||||
|
||||
MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>");
|
||||
MODULE_DESCRIPTION("LCD controller driver for VIA VT8500");
|
||||
|
||||
Reference in New Issue
Block a user