mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-05 03:44:03 +08:00
[SCSI] a3000: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
70695baa49
commit
a915b84a7b
@ -280,18 +280,7 @@ static struct platform_driver amiga_a3000_scsi_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init amiga_a3000_scsi_init(void)
|
||||
{
|
||||
return platform_driver_probe(&amiga_a3000_scsi_driver,
|
||||
amiga_a3000_scsi_probe);
|
||||
}
|
||||
module_init(amiga_a3000_scsi_init);
|
||||
|
||||
static void __exit amiga_a3000_scsi_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&amiga_a3000_scsi_driver);
|
||||
}
|
||||
module_exit(amiga_a3000_scsi_exit);
|
||||
module_platform_driver_probe(amiga_a3000_scsi_driver, amiga_a3000_scsi_probe);
|
||||
|
||||
MODULE_DESCRIPTION("Amiga 3000 built-in SCSI");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Loading…
Reference in New Issue
Block a user