Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: mfd_cell is now implicitly available to htc-pasic3 drivers

No need to explicitly set the cell's platform_data/data_size.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Andres Salomon and committed by
Samuel Ortiz
07ae2a08 d24f36d3

-4
-4
drivers/mfd/htc-pasic3.c
··· 165 165 ds1wm_pdata.clock_rate = pdata->clock_rate; 166 166 /* the first 5 PASIC3 registers control the DS1WM */ 167 167 ds1wm_resources[0].end = (5 << asic->bus_shift) - 1; 168 - ds1wm_cell.platform_data = &ds1wm_cell; 169 - ds1wm_cell.data_size = sizeof(ds1wm_cell); 170 168 ret = mfd_add_devices(&pdev->dev, pdev->id, 171 169 &ds1wm_cell, 1, r, irq); 172 170 if (ret < 0) ··· 173 175 174 176 if (pdata && pdata->led_pdata) { 175 177 led_cell.driver_data = pdata->led_pdata; 176 - led_cell.platform_data = &led_cell; 177 - led_cell.data_size = sizeof(ds1wm_cell); 178 178 ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r, 0); 179 179 if (ret < 0) 180 180 dev_warn(dev, "failed to register LED device\n");