drm/panel: Initialise panel dev and funcs through drm_panel_init()
[linux-2.6-block.git] / drivers / gpu / drm / panel / panel-panasonic-vvx10f034n00.c
index a2092b0ccebdbc93c6b19b7d0ca342fa1df6d56d..6035bf45807443c1780406fa8fe8b50d1967e676 100644 (file)
@@ -8,17 +8,18 @@
  */
 
 #include <linux/backlight.h>
+#include <linux/delay.h>
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
-#include <drm/drmP.h>
+#include <video/mipi_display.h>
+
 #include <drm/drm_crtc.h>
+#include <drm/drm_device.h>
 #include <drm/drm_mipi_dsi.h>
 #include <drm/drm_panel.h>
 
-#include <video/mipi_display.h>
-
 /*
  * When power is turned off to this panel a minimum off time of 500ms has to be
  * observed before powering back on as there's no external reset pin. Keep
@@ -222,9 +223,8 @@ static int wuxga_nt_panel_add(struct wuxga_nt_panel *wuxga_nt)
                        return -EPROBE_DEFER;
        }
 
-       drm_panel_init(&wuxga_nt->base);
-       wuxga_nt->base.funcs = &wuxga_nt_panel_funcs;
-       wuxga_nt->base.dev = &wuxga_nt->dsi->dev;
+       drm_panel_init(&wuxga_nt->base, &wuxga_nt->dsi->dev,
+                      &wuxga_nt_panel_funcs);
 
        ret = drm_panel_add(&wuxga_nt->base);
        if (ret < 0)