staging: ti-soc-thermal: fix device removal
authorEduardo Valentin <eduardo.valentin@ti.com>
Mon, 8 Apr 2013 12:19:14 +0000 (08:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 17:35:09 +0000 (10:35 -0700)
commit262235b13c22f6b7f84173f350964e71a849067d
tree32d5c84ee6bf31f49f040cadfa4fd7ec209900ba
parentf1553334236701f1c790d6dc800d8f327b6c5166
staging: ti-soc-thermal: fix device removal

While removing, the device needs to unregister
the sensor from thermal framework. Before
calling the call back the driver needs to check
if the call back is registered. This patch
fix the check by checking the right callback.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/ti-bandgap.c