]> Pileus Git - ~andy/linux/blobdiff - drivers/watchdog/rdc321x_wdt.c
Merge branch 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6
[~andy/linux] / drivers / watchdog / rdc321x_wdt.c
index 3939e53f5f981d327ff344d522ab59f4df43238b..d8e725082fdc1c103d66f91eab6694e65af18c06 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 #include <linux/mfd/rdc321x.h>
+#include <linux/mfd/core.h>
 
 #define RDC_WDT_MASK   0x80000000 /* Mask */
 #define RDC_WDT_EN     0x00800000 /* Enable bit */
@@ -231,7 +232,7 @@ static int __devinit rdc321x_wdt_probe(struct platform_device *pdev)
        struct resource *r;
        struct rdc321x_wdt_pdata *pdata;
 
-       pdata = platform_get_drvdata(pdev);
+       pdata = mfd_get_data(pdev);
        if (!pdata) {
                dev_err(&pdev->dev, "no platform data supplied\n");
                return -ENODEV;