mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
scsi: qlogicpti: Use module_platform_driver to simplify the code
Use module_platform_driver() to eliminate boilerplate code. Link: https://lore.kernel.org/r/20200914065403.3726462-1-liushixin2@huawei.com Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
d30fbf2ce1
commit
e4c6d2872e
1 changed files with 1 additions and 13 deletions
|
@ -1468,22 +1468,10 @@ static struct platform_driver qpti_sbus_driver = {
|
|||
.probe = qpti_sbus_probe,
|
||||
.remove = qpti_sbus_remove,
|
||||
};
|
||||
|
||||
static int __init qpti_init(void)
|
||||
{
|
||||
return platform_driver_register(&qpti_sbus_driver);
|
||||
}
|
||||
|
||||
static void __exit qpti_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&qpti_sbus_driver);
|
||||
}
|
||||
module_platform_driver(qpti_sbus_driver);
|
||||
|
||||
MODULE_DESCRIPTION("QlogicISP SBUS driver");
|
||||
MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION("2.1");
|
||||
MODULE_FIRMWARE("qlogic/isp1000.bin");
|
||||
|
||||
module_init(qpti_init);
|
||||
module_exit(qpti_exit);
|
||||
|
|
Loading…
Reference in a new issue