diff options
author | Axel Lin <[email protected]> | 2013-08-31 20:25:52 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2013-08-31 17:51:06 +0100 |
commit | e93b07244d6e1d6105df78b6117b00c940006b45 (patch) | |
tree | 505925425d5e1df0e15e5cba534141a6b6d034b3 /tools/perf/scripts/python | |
parent | 96b3eace39d2ecfdb07003856ddd8f6973dfe7bb (diff) |
spi: core: Fix spi_register_master error handling
In the case spi_master_initialize_queue() fails, current code calls
device_unregister() before return error from spi_register_master().
However, all the drivers call spi_master_put() in the error path if
spi_register_master() fails. Thus we should call device_del() rather than
device_unregister() before return error from spi_register_master().
This also makes all the spi_register_master() error handling consistent,
because all other error paths of spi_register_master() expect drivers to
call spi_master_put() if spi_register_master() fails.
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions