Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux-drm-fsl-dcu.git] / sound / soc / codecs / wl1273.c
index 5836201834d97dcc769347ab98827841fce013ca..c8a874d0d4cae5d9a0a66974ff3ac5b4887d492a 100644 (file)
@@ -441,7 +441,8 @@ EXPORT_SYMBOL_GPL(wl1273_get_format);
 
 static int wl1273_probe(struct snd_soc_codec *codec)
 {
-       struct wl1273_core **core = codec->dev->platform_data;
+       struct wl1273_core **core =
+                       mfd_get_data(to_platform_device(codec->dev));
        struct wl1273_priv *wl1273;
        int r;