spi: release device claimed by bus_find_device_by_name
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Fri, 16 Apr 2010 09:52:59 +0000 (09:52 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 28 Apr 2010 07:14:05 +0000 (01:14 -0600)
commit8ec130a017ebd8b931344edde7013ffb18fa1965
tree183138a6db30ce3f002c65cae7304c27927edaa9
parent9bd73715a1f83f640937c121d22fa8dbaab73002
spi: release device claimed by bus_find_device_by_name

In success case the function bus_find_device_by_name calls
get_device. In our context put_device should be called to
decrease the device count usage.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c