Commit 3856f4e6 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200321133624.31388-1-sergio.paracuellos@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6203da98
...@@ -725,9 +725,4 @@ static struct platform_driver mt7621_pci_driver = { ...@@ -725,9 +725,4 @@ static struct platform_driver mt7621_pci_driver = {
}, },
}; };
static int __init mt7621_pci_init(void) builtin_platform_driver(mt7621_pci_driver);
{
return platform_driver_register(&mt7621_pci_driver);
}
module_init(mt7621_pci_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment