提交 c836f77f 编写于 作者: A Arend van Spriel 提交者: Greg Kroah-Hartman

staging: brcm80211: use KBUILD_MODNAME as driver name in registration

The driver name was hardcoded and not same as the kernel module file
being build. Although there may be no strong requirement to this it
may provide increased consistency.
Reviewed-by: NBrett Rudley <brudley@broadcom.com>
Reviewed-by: NHenry Ptasinski <henryp@broadcom.com>
Reviewed-by: NRoland Vossen <rvossen@broadcom.com>
Signed-off-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d8941ea6
...@@ -149,7 +149,7 @@ static struct platform_driver wifi_device = { ...@@ -149,7 +149,7 @@ static struct platform_driver wifi_device = {
.suspend = wifi_suspend, .suspend = wifi_suspend,
.resume = wifi_resume, .resume = wifi_resume,
.driver = { .driver = {
.name = "bcm4329_wlan", .name = KBUILD_MODNAME,
} }
}; };
......
...@@ -1184,7 +1184,7 @@ static void wl_remove(struct pci_dev *pdev) ...@@ -1184,7 +1184,7 @@ static void wl_remove(struct pci_dev *pdev)
} }
static struct pci_driver wl_pci_driver = { static struct pci_driver wl_pci_driver = {
.name = "brcm80211", .name = KBUILD_MODNAME,
.probe = wl_pci_probe, .probe = wl_pci_probe,
#ifdef LINUXSTA_PS #ifdef LINUXSTA_PS
.suspend = wl_suspend, .suspend = wl_suspend,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册