mfd: Fix pcf50633-regulator drvdata usage
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Oct 2009 22:12:36 +0000 (02:12 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:20 +0000 (19:21 +0100)
commit98c2e49030ba9c98bfed678ed9609fe50a6fcb95
tree8433ff7b926480cabb0899621a7c1bd60cc09c4b
parentbbb2e496f72d34a2e8f839456b1e324455b35123
mfd: Fix pcf50633-regulator drvdata usage

Currently the pcf50633-regulator driver data is set to the pcf50633 core
structure, but the pcf50633-regulator remove handler assumes that it is set to
the regulator device. This patch fixes the issue by accessing the pcf506533
core structure through its parent device and setting the driver data to the
regulator device.

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