Commit bac7e874 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik

[PATCH] chelsio: procectomy

Complete removal of proc stuff from chelsio. The orignal driver had a debug
proc interface, but not all the code got removed.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 20578151
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/mii.h> #include <linux/mii.h>
#include <linux/sockios.h> #include <linux/sockios.h>
#include <linux/proc_fs.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -780,17 +779,6 @@ static const struct ethtool_ops t1_ethtool_ops = { ...@@ -780,17 +779,6 @@ static const struct ethtool_ops t1_ethtool_ops = {
.set_tso = set_tso, .set_tso = set_tso,
}; };
static void cxgb_proc_cleanup(struct adapter *adapter,
struct proc_dir_entry *dir)
{
const char *name;
name = adapter->name;
remove_proc_entry(name, dir);
}
//#define chtoe_setup_toedev(adapter) NULL
#define update_mtu_tab(adapter)
#define write_smt_entry(adapter, idx)
static int t1_ioctl(struct net_device *dev, struct ifreq *req, int cmd) static int t1_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
{ {
struct adapter *adapter = dev->priv; struct adapter *adapter = dev->priv;
...@@ -1156,7 +1144,6 @@ static int __devinit init_one(struct pci_dev *pdev, ...@@ -1156,7 +1144,6 @@ static int __devinit init_one(struct pci_dev *pdev,
if (adapter->regs) iounmap(adapter->regs); if (adapter->regs) iounmap(adapter->regs);
for (i = bi->port_number - 1; i >= 0; --i) for (i = bi->port_number - 1; i >= 0; --i)
if (adapter->port[i].dev) { if (adapter->port[i].dev) {
cxgb_proc_cleanup(adapter, proc_root_driver);
kfree(adapter->port[i].dev); kfree(adapter->port[i].dev);
} }
} }
...@@ -1189,7 +1176,6 @@ static void __devexit remove_one(struct pci_dev *pdev) ...@@ -1189,7 +1176,6 @@ static void __devexit remove_one(struct pci_dev *pdev)
iounmap(adapter->regs); iounmap(adapter->regs);
while (--i >= 0) while (--i >= 0)
if (adapter->port[i].dev) { if (adapter->port[i].dev) {
cxgb_proc_cleanup(adapter, proc_root_driver);
kfree(adapter->port[i].dev); kfree(adapter->port[i].dev);
} }
pci_release_regions(pdev); pci_release_regions(pdev);
......
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