ramips: fix MikroTik 750Gr3 ports MAC addresses
[openwrt/staging/wigyori.git] / target / linux / ramips / patches-5.4 / 0117-staging-mt7621-pci-phy-use-builtin_platform_driver.patch
1 From ffe3dee4081055b4f58bc50dd3f5c97de42cf126 Mon Sep 17 00:00:00 2001
2 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
3 Date: Sat, 21 Mar 2020 14:36:23 +0100
4 Subject: [PATCH] staging: mt7621-pci-phy: use builtin_platform_driver()
5
6 Macro builtin_platform_driver can be used for builtin drivers
7 that don't do anything in driver init. So, use the macro
8 builtin_platform_driver and remove some boilerplate code.
9
10 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
11 Link: https://lore.kernel.org/r/20200321133624.31388-3-sergio.paracuellos@gmail.com
12 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 ---
14 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c | 7 +------
15 1 file changed, 1 insertion(+), 6 deletions(-)
16
17 --- a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c
18 +++ b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c
19 @@ -361,12 +361,7 @@ static struct platform_driver mt7621_pci
20 },
21 };
22
23 -static int __init mt7621_pci_phy_drv_init(void)
24 -{
25 - return platform_driver_register(&mt7621_pci_phy_driver);
26 -}
27 -
28 -module_init(mt7621_pci_phy_drv_init);
29 +builtin_platform_driver(mt7621_pci_phy_driver);
30
31 MODULE_AUTHOR("Sergio Paracuellos <sergio.paracuellos@gmail.com>");
32 MODULE_DESCRIPTION("MediaTek MT7621 PCIe PHY driver");