mirror of https://gitee.com/openkylin/linux.git
staging: rtl8192e: Rename rtl8192_pci_findadapter
Use naming schema found in other rtlwifi devices. Rename rtl8192_pci_findadapter to rtl92e_check_adapter. Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
68cb7b7a59
commit
e250592ed9
|
@ -2670,7 +2670,7 @@ static int rtl8192_pci_probe(struct pci_dev *pdev,
|
|||
|
||||
priv->ops = ops;
|
||||
|
||||
if (rtl8192_pci_findadapter(pdev, dev) == false)
|
||||
if (rtl92e_check_adapter(pdev, dev) == false)
|
||||
goto err_rel_mem;
|
||||
|
||||
dev->irq = pdev->irq;
|
||||
|
|
|
@ -45,7 +45,7 @@ static void rtl8192_parse_pci_configuration(struct pci_dev *pdev,
|
|||
pci_write_config_byte(pdev, 0x70f, tmp);
|
||||
}
|
||||
|
||||
bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev)
|
||||
bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
|
||||
u16 VenderID;
|
||||
|
|
|
@ -29,6 +29,6 @@
|
|||
#include <linux/pci.h>
|
||||
|
||||
struct net_device;
|
||||
bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev);
|
||||
bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue