From: Samuel Ortiz Date: Wed, 6 Apr 2011 09:48:53 +0000 (+0200) Subject: mfd: Pass htc-pasic3 led platform data through the cell platform_data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ac93beaab97d56b6e702cc625438f533e361ea5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: Pass htc-pasic3 led platform data through the cell platform_data Cc: Philipp Zabel Signed-off-by: Samuel Ortiz --- 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) } if (pdata && pdata->led_pdata) { + led_cell.platform_data = pdata->led_pdata; + led_cell.pdata_size = sizeof(struct pasic3_leds_machinfo); ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0); if (ret < 0) dev_warn(dev, "failed to register LED device\n");