Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185649
b: refs/heads/master
c: f9097dc
h: refs/heads/master
i:
  185647: a2e4667
v: v3
  • Loading branch information
Komuro authored and Dominik Brodowski committed Mar 2, 2010
1 parent 3d7ee7f commit 7a7ff7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 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: f3d4ae431d819200bb61e943cb23572b10744e93
refs/heads/master: f9097dce5d799462e086adca28815dac5006bb30
18 changes: 1 addition & 17 deletions trunk/drivers/pcmcia/pd6729.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,13 @@ MODULE_AUTHOR("Jun Komuro <komurojun-mbn@nifty.com>");
* Specifies the interrupt delivery mode. The default (1) is to use PCI
* interrupts; a value of 0 selects ISA interrupts. This must be set for
* correct operation of PCI card readers.
*
* irq_list=i,j,...
* This list limits the set of interrupts that can be used by PCMCIA
* cards.
* The default list is 3,4,5,7,9,10,11.
* (irq_list parameter is not used, if irq_mode = 1)
*/

static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */
static int irq_list[16];
static unsigned int irq_list_count = 0;

module_param(irq_mode, int, 0444);
module_param_array(irq_list, int, &irq_list_count, 0444);
MODULE_PARM_DESC(irq_mode,
"interrupt delivery mode. 0 = ISA, 1 = PCI. default is 1");
MODULE_PARM_DESC(irq_list, "interrupts that can be used by PCMCIA cards");

static DEFINE_SPINLOCK(port_lock);

Expand Down Expand Up @@ -605,13 +595,7 @@ static u_int __devinit pd6729_isa_scan(void)
return 0;
}

if (irq_list_count == 0)
mask0 = 0xffff;
else
for (i = mask0 = 0; i < irq_list_count; i++)
mask0 |= (1<<irq_list[i]);

mask0 &= PD67_MASK;
mask0 = PD67_MASK;

/* just find interrupts that aren't in use */
for (i = 0; i < 16; i++)
Expand Down

0 comments on commit 7a7ff7a

Please sign in to comment.