Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65988
b: refs/heads/master
c: 314c98d
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Jul 24, 2007
1 parent 9e9ba8e commit 13e51bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 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: 06039e90b90af4029184d577b3c66e59f6039a9e
refs/heads/master: 314c98d589b9da40af42cfe7213eff04c74caea3
10 changes: 8 additions & 2 deletions trunk/arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,15 @@ int peripheral_request_list(unsigned short per[], const char *label)
int ret;

for (cnt = 0; per[cnt] != 0; cnt++) {

ret = peripheral_request(per[cnt], label);
if (ret < 0)
return ret;

if (ret < 0) {
for ( ; cnt > 0; cnt--) {
peripheral_free(per[cnt - 1]);
}
return ret;
}
}

return 0;
Expand Down
11 changes: 9 additions & 2 deletions trunk/arch/blackfin/mach-bf548/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,18 @@ int peripheral_request_list(unsigned short per[], const char *label)
int ret;

for (cnt = 0; per[cnt] != 0; cnt++) {

ret = peripheral_request(per[cnt], label);
if (ret < 0)
return ret;

if (ret < 0) {
for ( ; cnt > 0; cnt--) {
peripheral_free(per[cnt - 1]);
}
return ret;
}
}


return 0;
}
EXPORT_SYMBOL(peripheral_request_list);
Expand Down

0 comments on commit 13e51bd

Please sign in to comment.