mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
video: pnx4008: convert drivers/video/pnx4008/* to use module_platform_driver()
This patch converts the drivers in drivers/video/pnx4008/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
70f6255a48
commit
00f1f199ea
2 changed files with 2 additions and 24 deletions
|
@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = {
|
||||||
.remove = rgbfb_remove,
|
.remove = rgbfb_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init rgbfb_init(void)
|
module_platform_driver(rgbfb_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&rgbfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit rgbfb_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&rgbfb_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(rgbfb_init);
|
|
||||||
module_exit(rgbfb_exit);
|
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
|
@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = {
|
||||||
.resume = sdum_resume,
|
.resume = sdum_resume,
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init sdum_init(void)
|
module_platform_driver(sdum_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&sdum_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit sdum_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&sdum_driver);
|
|
||||||
};
|
|
||||||
|
|
||||||
module_init(sdum_init);
|
|
||||||
module_exit(sdum_exit);
|
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Reference in a new issue