]> Git Repo - linux.git/blobdiff - drivers/input/misc/twl4030-vibra.c
mfd: mfd_cell is now implicitly available to twl4030 drivers
[linux.git] / drivers / input / misc / twl4030-vibra.c
index 014dd4ad0d4fecede04221e5348fc78e023d76e2..6a11694e3fc7bb1274f59105e35f9d0b7c7d33c9 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/workqueue.h>
 #include <linux/i2c/twl.h>
 #include <linux/mfd/twl4030-codec.h>
+#include <linux/mfd/core.h>
 #include <linux/input.h>
 #include <linux/slab.h>
 
@@ -196,7 +197,7 @@ static SIMPLE_DEV_PM_OPS(twl4030_vibra_pm_ops,
 
 static int __devinit twl4030_vibra_probe(struct platform_device *pdev)
 {
-       struct twl4030_codec_vibra_data *pdata = pdev->dev.platform_data;
+       struct twl4030_codec_vibra_data *pdata = mfd_get_data(pdev);
        struct vibra_info *info;
        int ret;
 
This page took 0.034655 seconds and 4 git commands to generate.