[lm-sensors] [PATCH 2/3] hwmon: (it87) Convert to use devm_kzalloc
guenter.roeck at ericsson.com
Fri May 11 23:39:25 CEST 2012
On Fri, 2012-05-11 at 17:10 -0400, Jean Delvare wrote:
> On Tue, 8 May 2012 19:31:53 -0700, Guenter Roeck wrote:
> > This makes the code a bit simpler and smaller.
> > Signed-off-by: Guenter Roeck <linux at roeck-us.net>
> > ---
> > drivers/hwmon/it87.c | 10 ++--------
> > 1 files changed, 2 insertions(+), 8 deletions(-)
> You'll have to adjust this patch as it is killing label ERROR2 which is
> still in use now that patch "hwmon: (it87) Create voltage attributes
> only if voltage is enabled" was updated.
Actually, since I am touching it, I'll also convert the request_region
call to devm_request_region. That will remove most of the labels. I'll
send out a revised patch in a minute.
More information about the lm-sensors