spi: spi_qsd: Prevent unbalanced clock
If an error occurs trying to get resources such as gpio pins
the spi driver is trying to release resources it never aquired.
This patch checks the return status of the function that gets
the resources and skips releasing resources on if it fails.
Change-Id: Ib2a1c96d8d03d39dcd1444f803fe1e56f8162bed
Signed-off-by:
Dan Sneddon <dsneddon@codeaurora.org>
Loading
Please register or sign in to comment