Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15761
b: refs/heads/master
c: 35b8fca
h: refs/heads/master
i:
  15759: 9408245
v: v3
  • Loading branch information
shemminger@osdl.org authored and Jeff Garzik committed Dec 1, 2005
1 parent 4707299 commit 4333f25
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 309 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f7a17d12a8cfd0ab4a50dded8390f6c44f1f205
refs/heads/master: 35b8fcab1b293cadd54cdf9e9636cc576d2cad88
3 changes: 1 addition & 2 deletions trunk/drivers/net/sk98lin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ sk98lin-objs := \
skrlmt.o \
sktimer.o \
skvpd.o \
skxmac2.o \
skproc.o
skxmac2.o

# DBGDEF = \
# -DDEBUG
Expand Down
42 changes: 1 addition & 41 deletions trunk/drivers/net/sk98lin/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/dma-mapping.h>
#include <linux/ip.h>

Expand Down Expand Up @@ -234,28 +233,6 @@ static int SkDrvDeInitAdapter(SK_AC *pAC, int devNbr);
* Extern Function Prototypes
*
******************************************************************************/
static const char SKRootName[] = "net/sk98lin";
static struct proc_dir_entry *pSkRootDir;
extern struct file_operations sk_proc_fops;

static inline void SkGeProcCreate(struct net_device *dev)
{
struct proc_dir_entry *pe;

if (pSkRootDir &&
(pe = create_proc_entry(dev->name, S_IRUGO, pSkRootDir))) {
pe->proc_fops = &sk_proc_fops;
pe->data = dev;
pe->owner = THIS_MODULE;
}
}

static inline void SkGeProcRemove(struct net_device *dev)
{
if (pSkRootDir)
remove_proc_entry(dev->name, pSkRootDir);
}

extern void SkDimEnableModerationIfNeeded(SK_AC *pAC);
extern void SkDimDisplayModerationSettings(SK_AC *pAC);
extern void SkDimStartModerationTimer(SK_AC *pAC);
Expand Down Expand Up @@ -4898,8 +4875,6 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
memcpy(&dev->dev_addr, &pAC->Addr.Net[0].CurrentMacAddress, 6);
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);

SkGeProcCreate(dev);

pNet->PortNr = 0;
pNet->NetNr = 0;

Expand Down Expand Up @@ -4947,7 +4922,6 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
free_netdev(dev);
pAC->dev[1] = pAC->dev[0];
} else {
SkGeProcCreate(dev);
memcpy(&dev->dev_addr,
&pAC->Addr.Net[1].CurrentMacAddress, 6);
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
Expand Down Expand Up @@ -4988,10 +4962,7 @@ static void __devexit skge_remove_one(struct pci_dev *pdev)
SK_AC *pAC = pNet->pAC;
struct net_device *otherdev = pAC->dev[1];

SkGeProcRemove(dev);
unregister_netdev(dev);
if (otherdev != dev)
SkGeProcRemove(otherdev);

SkGeYellowLED(pAC, pAC->IoBase, 0);

Expand Down Expand Up @@ -5136,23 +5107,12 @@ static struct pci_driver skge_driver = {

static int __init skge_init(void)
{
int error;

pSkRootDir = proc_mkdir(SKRootName, NULL);
if (pSkRootDir)
pSkRootDir->owner = THIS_MODULE;

error = pci_register_driver(&skge_driver);
if (error)
remove_proc_entry(SKRootName, NULL);
return error;
return pci_module_init(&skge_driver);
}

static void __exit skge_exit(void)
{
pci_unregister_driver(&skge_driver);
remove_proc_entry(SKRootName, NULL);

}

module_init(skge_init);
Expand Down
265 changes: 0 additions & 265 deletions trunk/drivers/net/sk98lin/skproc.c

This file was deleted.

0 comments on commit 4333f25

Please sign in to comment.