]> git.karo-electronics.de Git - linux-beck.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)
commitdd285ad7373bf5d21cceacb3b7a5eb8b72d37085
treef46fdda6b48ccb2b3721d7e807b1a41e2c99c8a1
parent8b313ca7f1b98263ce22519b25a9c2a362eeb898
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