Input: wm97xx - do not access dev->driver_data directly
[firefly-linux-kernel-4.4.55.git] / drivers / input / touchscreen / wm97xx-core.c
index 69af8385ab141bc78329e103653d55103eb53558..2957d48e0045fa05d68bb38aafe6ec8c9d3462d8 100644 (file)
@@ -569,7 +569,7 @@ static int wm97xx_probe(struct device *dev)
        mutex_init(&wm->codec_mutex);
 
        wm->dev = dev;
-       dev->driver_data = wm;
+       dev_set_drvdata(dev, wm);
        wm->ac97 = to_ac97_t(dev);
 
        /* check that we have a supported codec */