staging: mt7621-pci: use builtin_platform_driver()

Macro builtin_platform_driver can be used for builtin drivers
that don't do anything in driver init. So, use the macro
builtin_platform_driver and remove some boilerplate code.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200321133624.31388-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2020-03-21 14:36:21 +01:00 committed by Greg Kroah-Hartman
parent 6203da9803
commit 3856f4e652
1 changed files with 1 additions and 6 deletions

View File

@ -725,9 +725,4 @@ static struct platform_driver mt7621_pci_driver = {
},
};
static int __init mt7621_pci_init(void)
{
return platform_driver_register(&mt7621_pci_driver);
}
module_init(mt7621_pci_init);
builtin_platform_driver(mt7621_pci_driver);