Skip to content

Commit

Permalink
staging: brcm80211: use KBUILD_MODNAME as driver name in registration
Browse files Browse the repository at this point in the history
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: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent d8941ea commit c836f77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static struct platform_driver wifi_device = {
.suspend = wifi_suspend,
.resume = wifi_resume,
.driver = {
.name = "bcm4329_wlan",
.name = KBUILD_MODNAME,
}
};

Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,14 +1184,14 @@ static void wl_remove(struct pci_dev *pdev)
}

static struct pci_driver wl_pci_driver = {
.name = "brcm80211",
.probe = wl_pci_probe,
.name = KBUILD_MODNAME,
.probe = wl_pci_probe,
#ifdef LINUXSTA_PS
.suspend = wl_suspend,
.resume = wl_resume,
.suspend = wl_suspend,
.resume = wl_resume,
#endif /* LINUXSTA_PS */
.remove = __devexit_p(wl_remove),
.id_table = wl_id_table,
.remove = __devexit_p(wl_remove),
.id_table = wl_id_table,
};

/**
Expand Down

0 comments on commit c836f77

Please sign in to comment.