It is not required to free the memory which is allocated using devm_.
The device framework take care or releasing the memory.
Change-Id: I40d4815d4ae1385ad3715421b505bec227e3d1b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/400355
Reviewed-on: http://git-master/r/405009
GVS: Gerrit_Virtual_Submit
{
struct palmas_therm_zone *ptherm_zone = platform_get_drvdata(pdev);
- thermal_zone_device_unregister(ptherm_zone->tz_device);
free_irq(ptherm_zone->irq, ptherm_zone);
- kfree(ptherm_zone);
+ thermal_zone_device_unregister(ptherm_zone->tz_device);
return 0;
}