parport: convert drivers/parport/* to use module_platform_driver()
This patch converts the drivers in drivers/parport/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Ben Dooks <ben@simtec.co.uk> Cc: Derrick J. Brashear <shadow@dementia.org> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
bb74041b13
commit
782ee87702
2 changed files with 2 additions and 24 deletions
|
@ -420,18 +420,7 @@ static struct platform_driver axdrv = {
|
||||||
.resume = parport_ax88796_resume,
|
.resume = parport_ax88796_resume,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init parport_ax88796_init(void)
|
module_platform_driver(axdrv);
|
||||||
{
|
|
||||||
return platform_driver_register(&axdrv);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit parport_ax88796_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&axdrv);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(parport_ax88796_init)
|
|
||||||
module_exit(parport_ax88796_exit)
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
||||||
MODULE_DESCRIPTION("AX88796 Parport parallel port driver");
|
MODULE_DESCRIPTION("AX88796 Parport parallel port driver");
|
||||||
|
|
|
@ -391,21 +391,10 @@ static struct platform_driver bpp_sbus_driver = {
|
||||||
.remove = __devexit_p(bpp_remove),
|
.remove = __devexit_p(bpp_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init parport_sunbpp_init(void)
|
module_platform_driver(bpp_sbus_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&bpp_sbus_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit parport_sunbpp_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&bpp_sbus_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Derrick J Brashear");
|
MODULE_AUTHOR("Derrick J Brashear");
|
||||||
MODULE_DESCRIPTION("Parport Driver for Sparc bidirectional Port");
|
MODULE_DESCRIPTION("Parport Driver for Sparc bidirectional Port");
|
||||||
MODULE_SUPPORTED_DEVICE("Sparc Bidirectional Parallel Port");
|
MODULE_SUPPORTED_DEVICE("Sparc Bidirectional Parallel Port");
|
||||||
MODULE_VERSION("2.0");
|
MODULE_VERSION("2.0");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
module_init(parport_sunbpp_init)
|
|
||||||
module_exit(parport_sunbpp_exit)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue