Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243476
b: refs/heads/master
c: 5898eb7
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Eric Miao committed Mar 17, 2011
1 parent 6e812bb commit c75f8bc
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 8aad172e6c54c74b1effe88ded2f308db3e1b658
refs/heads/master: 5898eb79fb45d4fd4ce22139c168de937bfaab38
13 changes: 7 additions & 6 deletions trunk/arch/arm/mach-pxa/am300epd.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ static int am300_init_gpio_regs(struct broadsheetfb_par *par)
if (err) {
dev_err(&am300_device->dev, "failed requesting "
"gpio %d, err=%d\n", i, err);
while (i >= DB0_GPIO_PIN)
gpio_free(i--);
i = ARRAY_SIZE(gpios) - 1;
goto err_req_gpio;
goto err_req_gpio2;
}
}

Expand Down Expand Up @@ -159,9 +156,13 @@ static int am300_init_gpio_regs(struct broadsheetfb_par *par)

return 0;

err_req_gpio2:
while (--i >= DB0_GPIO_PIN)
gpio_free(i);
i = ARRAY_SIZE(gpios);
err_req_gpio:
while (i > 0)
gpio_free(gpios[i--]);
while (--i >= 0)
gpio_free(gpios[i]);

return err;
}
Expand Down

0 comments on commit c75f8bc

Please sign in to comment.