Hi Guenter,
-----Original Message----- From: Guenter Roeck [mailto:guenter.roeck@ericsson.com] Sent: Friday, March 02, 2012 10:21 PM To: R, Durgadoss Cc: Ashish Jangam; randy.dunlap@oracle.com; linaro-dev@lists.linaro.org; sameo@linux.intel.com; linux-kernel@vger.kernel.org; lm-sensors@lm-sensors.org; dchen@diasemi.com Subject: RE: [lm-sensors] [PATCH 02/03] HWMON: HWMON driver for DA9052/53 PMIC v3
Hi Durga,
On Fri, 2012-03-02 at 11:44 -0500, R, Durgadoss wrote:
Hi,
[snip..]
sysfs_remove_group(&pdev->dev.kobj, &da9052_attr_group);
+err_mem:
I think you should do a kfree(hwmon) here.
Not needed because devm_kzalloc() is used above.
Ok. Nice to know. Thank you :-)
Thanks, Durga