mirror of https://gitee.com/openkylin/linux.git
68d641efd8
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
apm_power.c | ||
bq27x00_battery.c | ||
collie_battery.c | ||
da9030_battery.c | ||
ds2760_battery.c | ||
ds2782_battery.c | ||
max17040_battery.c | ||
olpc_battery.c | ||
pcf50633-charger.c | ||
pda_power.c | ||
pmu_battery.c | ||
power_supply.h | ||
power_supply_core.c | ||
power_supply_leds.c | ||
power_supply_sysfs.c | ||
tosa_battery.c | ||
wm97xx_battery.c | ||
wm831x_power.c | ||
wm8350_power.c |