aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/tc6393xb.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-07-28 19:30:26 -0400
committerSamuel Ortiz <sameo@openedhand.com>2008-07-28 19:30:26 -0400
commit424f525a1241351da947fb48a938128ddd774511 (patch)
treee837c0f6b15a3efe38bb0aa3db5a46305e5a9f38 /drivers/mfd/tc6393xb.c
parent56edb58be157a06dc147a988af3588059556d392 (diff)
mfd: accept pure device as a parent, not only platform_device
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/mfd/tc6393xb.c')
-rw-r--r--drivers/mfd/tc6393xb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c
index 9908aaa4881a..f4fd797c1590 100644
--- a/drivers/mfd/tc6393xb.c
+++ b/drivers/mfd/tc6393xb.c
@@ -471,7 +471,7 @@ static int __devinit tc6393xb_probe(struct platform_device *dev)
471 tc6393xb_cells[TC6393XB_CELL_NAND].data_size = 471 tc6393xb_cells[TC6393XB_CELL_NAND].data_size =
472 sizeof(tc6393xb_cells[TC6393XB_CELL_NAND]); 472 sizeof(tc6393xb_cells[TC6393XB_CELL_NAND]);
473 473
474 retval = mfd_add_devices(dev, 474 retval = mfd_add_devices(&dev->dev, dev->id,
475 tc6393xb_cells, ARRAY_SIZE(tc6393xb_cells), 475 tc6393xb_cells, ARRAY_SIZE(tc6393xb_cells),
476 iomem, tcpd->irq_base); 476 iomem, tcpd->irq_base);
477 477
@@ -505,7 +505,7 @@ static int __devexit tc6393xb_remove(struct platform_device *dev)
505 struct tc6393xb *tc6393xb = platform_get_drvdata(dev); 505 struct tc6393xb *tc6393xb = platform_get_drvdata(dev);
506 int ret; 506 int ret;
507 507
508 mfd_remove_devices(dev); 508 mfd_remove_devices(&dev->dev);
509 509
510 if (tc6393xb->irq) 510 if (tc6393xb->irq)
511 tc6393xb_detach_irq(dev); 511 tc6393xb_detach_irq(dev);