diff options
author | Shubhrajyoti D <[email protected]> | 2012-05-10 19:20:41 +0530 |
---|---|---|
committer | Grant Likely <[email protected]> | 2012-05-10 21:23:58 -0600 |
commit | 7dfd2bd70228d1f8d468d58cb3d12ecd618479ed (patch) | |
tree | 5388c3c8ba4907ed86e7401da969e917a4f30586 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 6d6467ee58b4cddd34b01d642d282a353dd57ce9 (diff) |
spi: Dont call prepare/unprepare transfer if not populated
Currently the prepare/unprepare transfer are called unconditionally.
The assumption is that every driver using the spi core queue infrastructure
has to populate the prepare and unprepare functions. This encourages
drivers to populate empty functions to prevent crashing.
This patch prevents the call to prepare/unprepare if not populated.
Signed-off-by: Shubhrajyoti D <[email protected]>
Acked-by: Linus Walleij <[email protected]>
[grant.likely: fix whitespace defect]
Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions