]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Simplify remove functions
authorGuenter Roeck <linux@roeck-us.net>
Wed, 22 Feb 2012 16:56:44 +0000 (08:56 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:27:46 +0000 (18:27 -0700)
commit8663549315e194f056dc84ed37444fde0e65d2d3
treef46fdda6b48ccb2b3721d7e807b1a41e2c99c8a1
parent3b8e78ff6b47d659ce8df0338cc3d0bdc759cb3c
hwmon: (pmbus) Simplify remove functions

Since devm_kzalloc() is now used to allocate driver memory, the client
driver remove function has no purpose other than to call pmbus_do_remove().
This means we can get rid of it by redefining pmbus_do_remove() to use the
same prototype, and pointing to it directly.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 files changed:
drivers/hwmon/pmbus/adm1275.c
drivers/hwmon/pmbus/lm25066.c
drivers/hwmon/pmbus/ltc2978.c
drivers/hwmon/pmbus/max16064.c
drivers/hwmon/pmbus/max34440.c
drivers/hwmon/pmbus/max8688.c
drivers/hwmon/pmbus/pmbus.c
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c
drivers/hwmon/pmbus/ucd9000.c
drivers/hwmon/pmbus/ucd9200.c
drivers/hwmon/pmbus/zl6100.c