drivercore: revert addition of of_match to struct device
[firefly-linux-kernel-4.4.55.git] / drivers / gpio / rdc321x-gpio.c
index 897e0577e65e0fd425f18edb00512ee414566a64..a9bda881935a82907ff0c5c753efee59b924cdf5 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/pci.h>
 #include <linux/gpio.h>
 #include <linux/mfd/rdc321x.h>
+#include <linux/mfd/core.h>
 #include <linux/slab.h>
 
 struct rdc321x_gpio {
@@ -135,7 +136,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
        struct rdc321x_gpio *rdc321x_gpio_dev;
        struct rdc321x_gpio_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;