mirror of https://gitee.com/openkylin/linux.git
scsi: ppa: Switch to use module_parport_driver()
Switch to use module_parport_driver() to reduce boilerplate code. Link: https://lore.kernel.org/r/20210616142540.45676-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
0e025183f1
commit
364fb4e512
|
@ -1148,18 +1148,6 @@ static struct parport_driver ppa_driver = {
|
||||||
.detach = ppa_detach,
|
.detach = ppa_detach,
|
||||||
.devmodel = true,
|
.devmodel = true,
|
||||||
};
|
};
|
||||||
|
module_parport_driver(ppa_driver);
|
||||||
|
|
||||||
static int __init ppa_driver_init(void)
|
|
||||||
{
|
|
||||||
printk(KERN_INFO "ppa: Version %s\n", PPA_VERSION);
|
|
||||||
return parport_register_driver(&ppa_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit ppa_driver_exit(void)
|
|
||||||
{
|
|
||||||
parport_unregister_driver(&ppa_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(ppa_driver_init);
|
|
||||||
module_exit(ppa_driver_exit);
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Reference in New Issue