]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
spi/spi_tegra: use spi_unregister_master() instead of spi_master_put()
authorAxel Lin <axel.lin@gmail.com>
Wed, 11 May 2011 13:28:16 +0000 (21:28 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:43:07 +0000 (00:43 -0600)
commit8901e1b98e1dad75c4567d03dd00a59bd6c450e8
treec5c78d6bc7bd6b0500503ed4523bb08fa6414e33
parent680c1305e259a488f489bc887854523b6c6e0705
spi/spi_tegra: use spi_unregister_master() instead of spi_master_put()

spi_master_put() should only be used in error handling.
Once spi_register_master() returns success, we should call
spi_unregister_master() instead.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_tegra.c