diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-06 06:20:49 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-26 13:45:04 -0400 |
commit | 7dc00a0d14992d0083fefccad7839ac837ea55bc (patch) | |
tree | cabcc8593634786a7b2ca3e12623c1e8a2fe132d | |
parent | 1f8c666caddb4cd0c547bbedbc9f98c7bf51e176 (diff) |
mtd: Use platform_data to retrieve tmio_nand platform bits
With the addition of the platform device mfd_cell pointer, we can now
cleanly pass the sub device drivers platform data pointers through the
regular device platform_data one, and get rid of mfd_get_data().
Cc: Ian Molton <spyro@f2s.com>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/mfd/t7l66xb.c | 3 | ||||
-rw-r--r-- | drivers/mfd/tc6393xb.c | 4 | ||||
-rw-r--r-- | drivers/mtd/nand/tmio_nand.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 5ef0b8fba10..91ad21ef772 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -383,7 +383,8 @@ static int t7l66xb_probe(struct platform_device *dev) | |||
383 | 383 | ||
384 | t7l66xb_attach_irq(dev); | 384 | t7l66xb_attach_irq(dev); |
385 | 385 | ||
386 | t7l66xb_cells[T7L66XB_CELL_NAND].mfd_data = pdata->nand_data; | 386 | t7l66xb_cells[T7L66XB_CELL_NAND].platform_data = pdata->nand_data; |
387 | t7l66xb_cells[T7L66XB_CELL_NAND].pdata_size = sizeof(*pdata->nand_data); | ||
387 | 388 | ||
388 | ret = mfd_add_devices(&dev->dev, dev->id, | 389 | ret = mfd_add_devices(&dev->dev, dev->id, |
389 | t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells), | 390 | t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells), |
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index b3d5852b069..9612264f0e6 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -693,7 +693,9 @@ static int __devinit tc6393xb_probe(struct platform_device *dev) | |||
693 | goto err_setup; | 693 | goto err_setup; |
694 | } | 694 | } |
695 | 695 | ||
696 | tc6393xb_cells[TC6393XB_CELL_NAND].mfd_data = tcpd->nand_data; | 696 | tc6393xb_cells[TC6393XB_CELL_NAND].platform_data = tcpd->nand_data; |
697 | tc6393xb_cells[TC6393XB_CELL_NAND].pdata_size = | ||
698 | sizeof(*tcpd->nand_data); | ||
697 | tc6393xb_cells[TC6393XB_CELL_FB].platform_data = tcpd->fb_data; | 699 | tc6393xb_cells[TC6393XB_CELL_FB].platform_data = tcpd->fb_data; |
698 | tc6393xb_cells[TC6393XB_CELL_FB].pdata_size = sizeof(*tcpd->fb_data); | 700 | tc6393xb_cells[TC6393XB_CELL_FB].pdata_size = sizeof(*tcpd->fb_data); |
699 | 701 | ||
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index 14c57870782..c004e474631 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c | |||
@@ -372,7 +372,7 @@ static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio) | |||
372 | 372 | ||
373 | static int tmio_probe(struct platform_device *dev) | 373 | static int tmio_probe(struct platform_device *dev) |
374 | { | 374 | { |
375 | struct tmio_nand_data *data = mfd_get_data(dev); | 375 | struct tmio_nand_data *data = dev->dev.platform_data; |
376 | struct resource *fcr = platform_get_resource(dev, | 376 | struct resource *fcr = platform_get_resource(dev, |
377 | IORESOURCE_MEM, 0); | 377 | IORESOURCE_MEM, 0); |
378 | struct resource *ccr = platform_get_resource(dev, | 378 | struct resource *ccr = platform_get_resource(dev, |