Hi Caesar,yes,I made a stupid mistake. Thanks~
On Wed, Sep 03, 2014 at 10:10:36AM +0800, Caesar Wang wrote:
+static int rockchip_thermal_remove(struct platform_device *pdev)It looks like we are unregistering the same cooling device one too many times.
+{
+ struct rockchip_thermal_data *data = platform_get_drvdata(pdev);
+
+ rockchip_thermal_control(data, false);
+
+ thermal_zone_device_unregister(data->tz);
+ cpufreq_cooling_unregister(data->cdev);
+ cpufreq_cooling_unregister(data->cdev);
Thanks.