Commit 9c2ce827 authored by Mateusz Kulikowski's avatar Mateusz Kulikowski Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove dead code: mp_adapter

mp_adapter structure was used in past, but now is only initialized and
never read.
Signed-off-by: default avatarMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8ca20fe
...@@ -344,8 +344,6 @@ struct r8192_priv { ...@@ -344,8 +344,6 @@ struct r8192_priv {
struct channel_access_setting ChannelAccessSetting; struct channel_access_setting ChannelAccessSetting;
struct mp_adapter NdisAdapter;
struct rtl819x_ops *ops; struct rtl819x_ops *ops;
struct rtllib_device *rtllib; struct rtllib_device *rtllib;
......
...@@ -34,10 +34,8 @@ static void rtl8192_parse_pci_configuration(struct pci_dev *pdev, ...@@ -34,10 +34,8 @@ static void rtl8192_parse_pci_configuration(struct pci_dev *pdev,
u16 LinkCtrlReg; u16 LinkCtrlReg;
pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg);
priv->NdisAdapter.LinkCtrlReg = (u8)LinkCtrlReg;
RT_TRACE(COMP_INIT, "Link Control Register =%x\n", RT_TRACE(COMP_INIT, "Link Control Register =%x\n", LinkCtrlReg);
priv->NdisAdapter.LinkCtrlReg);
pci_read_config_byte(pdev, 0x98, &tmp); pci_read_config_byte(pdev, 0x98, &tmp);
tmp |= BIT4; tmp |= BIT4;
......
...@@ -28,23 +28,6 @@ ...@@ -28,23 +28,6 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/pci.h> #include <linux/pci.h>
struct mp_adapter {
u8 LinkCtrlReg;
u8 BusNumber;
u8 DevNumber;
u8 FuncNumber;
u8 PciBridgeBusNum;
u8 PciBridgeDevNum;
u8 PciBridgeFuncNum;
u8 PciBridgeVendor;
u16 PciBridgeVendorId;
u16 PciBridgeDeviceId;
u8 PciBridgePCIeHdrOffset;
u8 PciBridgeLinkCtrlReg;
};
struct net_device; struct net_device;
bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev); bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev);
......
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