From: Eduardo Valentin Date: Mon, 8 Apr 2013 12:19:14 +0000 (-0400) Subject: staging: ti-soc-thermal: fix device removal X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~238 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=262235b13c22f6b7f84173f350964e71a849067d;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed