diff --git a/drivers/staging/ti-soc-thermal/ti-bandgap.c b/drivers/staging/ti-soc-thermal/ti-bandgap.c index 37fdba639842974b47bf219d2ccbb2e71367abc7..f20c1cfe9800316847321c4a4191e89915e1ec51 100644 --- a/drivers/staging/ti-soc-thermal/ti-bandgap.c +++ b/drivers/staging/ti-soc-thermal/ti-bandgap.c @@ -1369,7 +1369,7 @@ int ti_bandgap_remove(struct platform_device *pdev) /* First thing is to remove sensor interfaces */ for (i = 0; i < bgp->conf->sensor_count; i++) { - if (bgp->conf->sensors[i].register_cooling) + if (bgp->conf->sensors[i].unregister_cooling) bgp->conf->sensors[i].unregister_cooling(bgp, i); if (bgp->conf->remove_sensor)