Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122456
b: refs/heads/master
c: 4850218
h: refs/heads/master
v: v3
  • Loading branch information
Luotao Fu authored and David S. Miller committed Dec 4, 2008
1 parent 5845f95 commit 4c05f88
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 50 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: 999890b21a8eff7559a140fcbd2cd4b34e685c76
refs/heads/master: 48502180e4b47fb2b1e7834fe0f16f4e553a053d
36 changes: 0 additions & 36 deletions trunk/drivers/net/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,33 +90,6 @@ static const char version[] =

#include "smc91x.h"

#ifdef CONFIG_ISA
/*
* the LAN91C111 can be at any of the following port addresses. To change,
* for a slightly different card, you can add it to the array. Keep in
* mind that the array must end in zero.
*/
static unsigned int smc_portlist[] __initdata = {
0x200, 0x220, 0x240, 0x260, 0x280, 0x2A0, 0x2C0, 0x2E0,
0x300, 0x320, 0x340, 0x360, 0x380, 0x3A0, 0x3C0, 0x3E0, 0
};

#ifndef SMC_IOADDR
# define SMC_IOADDR -1
#endif
static unsigned long io = SMC_IOADDR;
module_param(io, ulong, 0400);
MODULE_PARM_DESC(io, "I/O base address");

#ifndef SMC_IRQ
# define SMC_IRQ -1
#endif
static int irq = SMC_IRQ;
module_param(irq, int, 0400);
MODULE_PARM_DESC(irq, "IRQ number");

#endif /* CONFIG_ISA */

#ifndef SMC_NOWAIT
# define SMC_NOWAIT 0
#endif
Expand Down Expand Up @@ -2314,15 +2287,6 @@ static struct platform_driver smc_driver = {

static int __init smc_init(void)
{
#ifdef MODULE
#ifdef CONFIG_ISA
if (io == -1)
printk(KERN_WARNING
"%s: You shouldn't use auto-probing with insmod!\n",
CARDNAME);
#endif
#endif

return platform_driver_register(&smc_driver);
}

Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,6 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)

#define SMC_IRQ_FLAGS (0)

#elif defined(CONFIG_ISA)

#define SMC_CAN_USE_8BIT 1
#define SMC_CAN_USE_16BIT 1
#define SMC_CAN_USE_32BIT 0

#define SMC_inb(a, r) inb((a) + (r))
#define SMC_inw(a, r) inw((a) + (r))
#define SMC_outb(v, a, r) outb(v, (a) + (r))
#define SMC_outw(v, a, r) outw(v, (a) + (r))
#define SMC_insw(a, r, p, l) insw((a) + (r), p, l)
#define SMC_outsw(a, r, p, l) outsw((a) + (r), p, l)

#elif defined(CONFIG_M32R)

#define SMC_CAN_USE_8BIT 0
Expand Down

0 comments on commit 4c05f88

Please sign in to comment.