aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-04-06 05:48:53 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 13:45:01 -0400
commit8ac93beaab97d56b6e702cc625438f533e361ea5 (patch)
tree6bd5a47a2656fcdee34e4abd6401a679228b6de7 /drivers/mfd
parent121ea573aeb7e9b1d79effa8ef7970031aebda12 (diff)
mfd: Pass htc-pasic3 led platform data through the cell platform_data
Cc: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/htc-pasic3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c
index 95a4ff48b282..2808bd125d13 100644
--- a/drivers/mfd/htc-pasic3.c
+++ b/drivers/mfd/htc-pasic3.c
@@ -173,6 +173,8 @@ static int __init pasic3_probe(struct platform_device *pdev)
173 } 173 }
174 174
175 if (pdata && pdata->led_pdata) { 175 if (pdata && pdata->led_pdata) {
176 led_cell.platform_data = pdata->led_pdata;
177 led_cell.pdata_size = sizeof(struct pasic3_leds_machinfo);
176 ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0); 178 ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0);
177 if (ret < 0) 179 if (ret < 0)
178 dev_warn(dev, "failed to register LED device\n"); 180 dev_warn(dev, "failed to register LED device\n");