]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
mfd: Fix 7l66 and 6387 according to the new mfd-core API
authorSamuel Ortiz <sameo@openedhand.com>
Thu, 31 Jul 2008 22:16:13 +0000 (00:16 +0200)
committerSamuel Ortiz <sameo@openedhand.com>
Sun, 10 Aug 2008 18:10:06 +0000 (20:10 +0200)
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/t7l66xb.c
drivers/mfd/tc6387xb.c

index 5be42054f739c5f907f2e03162b5d3386b0adf49..2d715fcea76fd171949374448592f48e53639be1 100644 (file)
@@ -338,9 +338,14 @@ static int t7l66xb_probe(struct platform_device *dev)
        t7l66xb_attach_irq(dev);
 
        t7l66xb_cells[T7L66XB_CELL_NAND].driver_data = pdata->nand_data;
+       t7l66xb_cells[T7L66XB_CELL_NAND].platform_data =
+               &t7l66xb_cells[T7L66XB_CELL_NAND];
+       t7l66xb_cells[T7L66XB_CELL_NAND].data_size =
+               sizeof(t7l66xb_cells[T7L66XB_CELL_NAND]);
 
-       ret = mfd_add_devices(dev, t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells),
-               iomem, t7l66xb->irq_base);
+       ret = mfd_add_devices(&dev->dev, dev->id,
+                             t7l66xb_cells, ARRAY_SIZE(t7l66xb_cells),
+                             iomem, t7l66xb->irq_base);
 
        if (!ret)
                return 0;
@@ -366,7 +371,7 @@ static int t7l66xb_remove(struct platform_device *dev)
        t7l66xb_detach_irq(dev);
        iounmap(t7l66xb->scr);
        release_resource(&t7l66xb->rscr);
-       mfd_remove_devices(dev);
+       mfd_remove_devices(&dev->dev);
        platform_set_drvdata(dev, NULL);
        kfree(t7l66xb);
 
index 03718feda4d8f9300951ec304d785163eda56968..9fd6f80b50f64aa5c51e88b3487bb81dd1b631ce 100644 (file)
@@ -119,8 +119,8 @@ static int tc6387xb_probe(struct platform_device *dev)
 
        printk(KERN_INFO "Toshiba tc6387xb initialised\n");
 
-       ret = mfd_add_devices(dev, tc6387xb_cells,
-               ARRAY_SIZE(tc6387xb_cells), iomem, irq);
+       ret = mfd_add_devices(&dev->dev, dev->id, tc6387xb_cells,
+                             ARRAY_SIZE(tc6387xb_cells), iomem, irq);
 
        if (!ret)
                return 0;