]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Use platform_device_add_data to set pcf50633 regulator platform data
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Oct 2009 22:12:35 +0000 (02:12 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:18 +0000 (19:21 +0100)
commitc225708bbdf3fcec53be1c9472a55013b197ecde
tree7b3660150c6b9ceead3a3db0b050ba5a332d2942
parent1d9bdb4a714dc2a37d82cc721991794a3c4311be
mfd: Use platform_device_add_data to set pcf50633 regulator platform data

Platform devices allocated with platform_device_alloc should use
platform_device_add_data to set the platform data, because kfree will be called
on the platform_data when the device is released.

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>
drivers/mfd/pcf50633-core.c