commit | 44fc5366de6c92bb7a8752605dc3cf0381cedb87 | [log] [tgz] |
---|---|---|
author | Przemyslaw Marczak <p.marczak@samsung.com> | Tue Mar 31 18:57:16 2015 +0200 |
committer | Simon Glass <sjg@chromium.org> | Sat Apr 18 11:11:17 2015 -0600 |
tree | aa69cbadf4241af85ea80f28efb9fd906b2567b1 | |
parent | 2d1e029dc24f40310059732d88557d6d99be4973 [diff] |
dm: gpio: request list: return the count if requests max_count reached The function gpio_request_list_by_name_nodev() returned -ENOSPC error, when the loop count was greater than requested count. This was wrong, because function should return the requested gpio count, when meets the call request without errors. Now, the loop ends on requested max_count. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>