linux_dsm_epyc7002/drivers/regulator
Axel Lin 53a4befa4e regulator: max8660 - fix a memory leak in max8660_remove()
In max8660_probe(), we allocate memory for max660.
In max8660_remove(), current implementation only free rdev
which is a member of struct max8660.
Thus, there is a small memory leak when we unload the module.

This patch fixes the memory leak by passing max660 to i2c clientdata,
and properly kfree(max8660) in max8660_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2010-08-11 11:38:02 +01:00
..
88pm8607.c regulator: use voltage number array in 88pm860x 2010-05-25 10:16:02 +01:00
ab3100.c ab3100: fix off-by-one value range checking for voltage selector 2010-07-27 11:29:23 +01:00
ab8500.c regulator: add support for regulators on the ab8500 MFD 2010-08-11 11:38:01 +01:00
ad5398.c regulator: make sure the regulator is available prior to the consumers. 2010-08-11 11:38:00 +01:00
bq24022.c Regulators: ab3100/bq24022: add a missing .owner field in regulator_desc 2010-05-25 10:16:02 +01:00
core.c regulator: Remove owner field from attribute initialization in regulator core driver 2010-08-05 13:53:35 -07:00
da903x.c regulator: keep index within bounds in da9034_get_ldo12_voltage() 2009-12-17 10:27:25 +00:00
dummy.c regulator: Provide optional dummy regulator for consumers 2010-03-03 14:49:26 +00:00
dummy.h regulator: Provide optional dummy regulator for consumers 2010-03-03 14:49:26 +00:00
fixed.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
isl6271a-regulator.c ISL6271A voltage regulator support. 2010-08-11 11:38:00 +01:00
Kconfig regulator: tps6586x: add dependancy on MFD_TPS6585x 2010-08-11 11:38:01 +01:00
lp3971.c regulator: lp3971 - remove unnecessary ret value checking in lp3971_i2c_write() 2010-08-11 11:38:02 +01:00
Makefile regulator: add TPS6586X regulator driver 2010-08-11 11:38:01 +01:00
max1586.c regulator: max1586 - fix a memory leak in max1586_pmic_remove() 2010-08-11 11:38:02 +01:00
max8649.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
max8660.c regulator: max8660 - fix a memory leak in max8660_remove() 2010-08-11 11:38:02 +01:00
max8925-regulator.c regulator: fix enabling regulator issue on max8925 2010-04-28 15:24:34 +01:00
max8998.c max8998: fix off-by-one value range checking 2010-08-11 11:38:02 +01:00
mc13783-regulator.c mc13783-regulator: fix vaild voltage range checking for mc13783_fixed_regulator_set_voltage 2010-05-25 10:16:02 +01:00
pcap-regulator.c Regulators: pcap-regulator - clean up driver data after removal 2010-03-03 14:49:29 +00:00
pcf50633-regulator.c mfd: Fix pcf50633-regulator drvdata usage 2009-12-13 19:21:20 +01:00
tps6507x-regulator.c regulator: tps6507x: allow driver to use DEFDCDC{2,3}_HIGH register 2010-07-28 15:09:26 +01:00
tps6586x-regulator.c regulator: tps6586x: fix millivolt return values and SM2 table 2010-08-11 11:38:01 +01:00
tps65023-regulator.c tps65023: Allow registering similar TPS65021 2010-08-11 11:38:01 +01:00
twl-regulator.c twl6030: regulator: Remove vsel tables and use formula for calculation 2010-05-25 10:16:02 +01:00
userspace-consumer.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
virtual.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
wm831x-dcdc.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
wm831x-isink.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
wm831x-ldo.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
wm8350-regulator.c wm8350-regulator: fix wm8350_register_regulator error handling 2010-07-27 11:29:27 +01:00
wm8400-regulator.c Regulators: wm8400 - cleanup platform driver data handling 2010-03-03 14:49:30 +00:00
wm8994-regulator.c regulator: Default GPIO controlled WM8994 regulators to disabled 2010-08-11 11:38:02 +01:00