On 03/23/2014 01:37 PM, Opensource [Steve Twiss] wrote:
From: Opensource [Steve Twiss] <stwiss.opensource@xxxxxxxxxxx> Add the HWMON driver for DA9063 Signed-off-by: Opensource [Steve Twiss] <stwiss.opensource@xxxxxxxxxxx> ---
+ + ret = sysfs_create_group(&pdev->dev.kobj, &da9063_attr_group); + if (ret) + return ret; + + hwmon->classdev = hwmon_device_register(&pdev->dev); + if (IS_ERR(hwmon->classdev)) { + sysfs_remove_group(&pdev->dev.kobj, &da9063_attr_group); + return PTR_ERR(hwmon->classdev); + } +
Hi Steve, This looks like an ideal candidate for devm_hwmon_device_register_with_groups(). Can you use that API, please ? Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html