Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34480
b: refs/heads/master
c: 9c3bd68
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and David S. Miller committed Sep 22, 2006
1 parent 3934058 commit 75a0556
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 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: 9a673e563e543a5c8a6f9824562e55e807b8a56c
refs/heads/master: 9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11
8 changes: 7 additions & 1 deletion trunk/drivers/net/irda/ali-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static void __exit ali_ircc_cleanup(void)

IRDA_DEBUG(2, "%s(), ---------------- Start ----------------\n", __FUNCTION__);

for (i=0; i < 4; i++) {
for (i=0; i < ARRAY_SIZE(dev_self); i++) {
if (dev_self[i])
ali_ircc_close(dev_self[i]);
}
Expand All @@ -273,6 +273,12 @@ static int ali_ircc_open(int i, chipio_t *info)
int err;

IRDA_DEBUG(2, "%s(), ---------------- Start ----------------\n", __FUNCTION__);

if (i >= ARRAY_SIZE(dev_self)) {
IRDA_ERROR("%s(), maximum number of supported chips reached!\n",
__FUNCTION__);
return -ENOMEM;
}

/* Set FIR FIFO and DMA Threshold */
if ((ali_ircc_setup(info)) == -1)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/irda/irport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ static int __init irport_init(void)
{
int i;

for (i=0; (io[i] < 2000) && (i < 4); i++) {
for (i=0; (io[i] < 2000) && (i < ARRAY_SIZE(dev_self)); i++) {
if (irport_open(i, io[i], irq[i]) != NULL)
return 0;
}
Expand All @@ -1112,7 +1112,7 @@ static void __exit irport_cleanup(void)

IRDA_DEBUG( 4, "%s()\n", __FUNCTION__);

for (i=0; i < 4; i++) {
for (i=0; i < ARRAY_SIZE(dev_self); i++) {
if (dev_self[i])
irport_close(dev_self[i]);
}
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/net/irda/via-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static void via_ircc_clean(void)

IRDA_DEBUG(3, "%s()\n", __FUNCTION__);

for (i=0; i < 4; i++) {
for (i=0; i < ARRAY_SIZE(dev_self); i++) {
if (dev_self[i])
via_ircc_close(dev_self[i]);
}
Expand Down Expand Up @@ -327,6 +327,9 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)

IRDA_DEBUG(3, "%s()\n", __FUNCTION__);

if (i >= ARRAY_SIZE(dev_self))
return -ENOMEM;

/* Allocate new instance of the driver */
dev = alloc_irdadev(sizeof(struct via_ircc_cb));
if (dev == NULL)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/irda/w83977af_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static int __init w83977af_init(void)

IRDA_DEBUG(0, "%s()\n", __FUNCTION__ );

for (i=0; (io[i] < 2000) && (i < 4); i++) {
for (i=0; (io[i] < 2000) && (i < ARRAY_SIZE(dev_self)); i++) {
if (w83977af_open(i, io[i], irq[i], dma[i]) == 0)
return 0;
}
Expand All @@ -136,7 +136,7 @@ static void __exit w83977af_cleanup(void)

IRDA_DEBUG(4, "%s()\n", __FUNCTION__ );

for (i=0; i < 4; i++) {
for (i=0; i < ARRAY_SIZE(dev_self); i++) {
if (dev_self[i])
w83977af_close(dev_self[i]);
}
Expand Down

0 comments on commit 75a0556

Please sign in to comment.