mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
scsi: sni_53c710: 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
e4c6d2872e
commit
a3b73c96b4
@ -124,16 +124,4 @@ static struct platform_driver snirm710_driver = {
|
||||
.name = "snirm_53c710",
|
||||
},
|
||||
};
|
||||
|
||||
static int __init snirm710_init(void)
|
||||
{
|
||||
return platform_driver_register(&snirm710_driver);
|
||||
}
|
||||
|
||||
static void __exit snirm710_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&snirm710_driver);
|
||||
}
|
||||
|
||||
module_init(snirm710_init);
|
||||
module_exit(snirm710_exit);
|
||||
module_platform_driver(snirm710_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user