]> Git Repo - J-u-boot.git/blobdiff - drivers/video/sunxi/sunxi_lcd.c
common: Drop asm/global_data.h from common header
[J-u-boot.git] / drivers / video / sunxi / sunxi_lcd.c
index 2f51aebe272c9984f5da137981d1d5d88ec942cb..7a9eba1ed42abb9ec25e3bf27a5da9eb25140a22 100644 (file)
@@ -1,13 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Allwinner LCD driver
  *
  * (C) Copyright 2017 Vasily Khoruzhick <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <display.h>
+#include <log.h>
 #include <video_bridge.h>
 #include <backlight.h>
 #include <dm.h>
@@ -16,6 +16,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/lcdc.h>
 #include <asm/arch/gpio.h>
+#include <asm/global_data.h>
 #include <asm/gpio.h>
 
 struct sunxi_lcd_priv {
@@ -142,11 +143,11 @@ U_BOOT_DRIVER(sunxi_lcd) = {
        .id     = UCLASS_DISPLAY,
        .ops    = &sunxi_lcd_ops,
        .probe  = sunxi_lcd_probe,
-       .priv_auto_alloc_size = sizeof(struct sunxi_lcd_priv),
+       .priv_auto      = sizeof(struct sunxi_lcd_priv),
 };
 
 #ifdef CONFIG_MACH_SUN50I
-U_BOOT_DEVICE(sunxi_lcd) = {
+U_BOOT_DRVINFO(sunxi_lcd) = {
        .name = "sunxi_lcd"
 };
 #endif
This page took 0.024642 seconds and 4 git commands to generate.