mfd: Support software initiated shutdown of WM831x PMICs
[linux-2.6.git] / drivers / mfd / wm8400-core.c
index 3a6e78c..597f82e 100644 (file)
@@ -245,7 +245,8 @@ static int wm8400_register_codec(struct wm8400 *wm8400)
 {
        struct mfd_cell cell = {
                .name = "wm8400-codec",
-               .mfd_data = wm8400,
+               .platform_data = wm8400,
+               .pdata_size = sizeof(*wm8400),
        };
 
        return mfd_add_devices(wm8400->dev, -1, &cell, 1, NULL, 0);