Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3796
b: refs/heads/master
c: 22f3a8f
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Jun 28, 2005
1 parent 24d79d6 commit 493fe34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 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: 4af48c8c16dfc37400f63633373dd180b5540ead
refs/heads/master: 22f3a8f5fc94be4dd31c4c5ec1d1dc2b9c83a8ac
21 changes: 8 additions & 13 deletions trunk/drivers/usb/host/sl811_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ static const char driver_name[DEV_NAME_LEN] = "sl811_cs";

static dev_link_t *dev_list = NULL;

static int irq_list[4] = { -1 };
static int irq_list_count;

module_param_array(irq_list, int, &irq_list_count, 0444);

INT_MODULE_PARM(irq_mask, 0xdeb8);

typedef struct local_info_t {
dev_link_t link;
dev_node_t node;
Expand Down Expand Up @@ -373,7 +366,7 @@ static dev_link_t *sl811_cs_attach(void)
local_info_t *local;
dev_link_t *link;
client_reg_t client_reg;
int ret, i;
int ret;

local = kmalloc(sizeof(local_info_t), GFP_KERNEL);
if (!local)
Expand All @@ -385,11 +378,6 @@ static dev_link_t *sl811_cs_attach(void)
/* Initialize */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
if (irq_list[0] == -1)
link->irq.IRQInfo2 = irq_mask;
else
for (i = 0; i < irq_list_count; i++)
link->irq.IRQInfo2 |= 1 << irq_list[i];
link->irq.Handler = NULL;

link->conf.Attributes = 0;
Expand Down Expand Up @@ -418,13 +406,20 @@ static dev_link_t *sl811_cs_attach(void)
return link;
}

static struct pcmcia_device_id sl811_ids[] = {
PCMCIA_DEVICE_MANF_CARD(0xc015, 0x0001), /* RATOC USB HOST CF+ Card */
PCMCIA_DEVICE_NULL,
};
MODULE_DEVICE_TABLE(pcmcia, sl811_ids);

static struct pcmcia_driver sl811_cs_driver = {
.owner = THIS_MODULE,
.drv = {
.name = (char *)driver_name,
},
.attach = sl811_cs_attach,
.detach = sl811_cs_detach,
.id_table = sl811_ids,
};

/*====================================================================*/
Expand Down

0 comments on commit 493fe34

Please sign in to comment.