]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/mxc_gpio.c
dm: core: Add logging of some common errors
[u-boot] / drivers / gpio / mxc_gpio.c
index d0e365a54b01dac6767a9e4269d1e7e29ef159b8..d8e72ada194322d70a363146ef39f55d22ee5a8a 100644 (file)
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2009
  * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de>
  *
  * Copyright (C) 2011
  * Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <errno.h>
@@ -158,8 +157,6 @@ int gpio_direction_output(unsigned gpio, int value)
 
 #ifdef CONFIG_DM_GPIO
 #include <fdtdec.h>
-DECLARE_GLOBAL_DATA_PTR;
-
 static int mxc_gpio_is_output(struct gpio_regs *regs, int offset)
 {
        u32 val;