瀏覽代碼

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>
Samuel Ortiz 14 年之前
父節點
當前提交
8ac93beaab
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/mfd/htc-pasic3.c

+ 2 - 0
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");