WSL2-Linux-Kernel/include/linux/mfd/pcf50633
Lars-Peter Clausen 68d641efd8 mfd: Fix memleak in pcf50633_client_dev_register
Since platform_device_add_data copies the passed data, the allocated
subdev_pdata is never freed. A simple fix would be to either free subdev_pdata
or put it onto the stack. But since the pcf50633 child devices can rely on
beeing children of the pcf50633 core device it's much more elegant to get access
to pcf50633 core structure through that link. This allows to get completly rid
of pcf5033_subdev_pdata.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2009-12-13 19:21:17 +01:00
..
adc.h mfd: fix wrong define for 10bit pcf50633 ADC mode 2009-09-17 09:46:54 +02:00
core.h mfd: Fix memleak in pcf50633_client_dev_register 2009-12-13 19:21:17 +01:00
gpio.h mfd: PCF50633 gpio support 2009-01-11 01:34:24 +01:00
mbc.h pcf50633_charger: Remove unused mbc_set_status function 2009-02-02 19:58:45 +03:00
pmic.h regulator: PCF50633 pmic driver 2009-01-11 01:34:25 +01:00