phy: Fix possible NULL pointer deference
[oweals/u-boot.git] / drivers / gpio / mvgpio.h
index a3f17a0c311fff547b418ee9f84e929258a33ef2..d68c48e637372bb8cf1f4ddd21f25c801c40f165 100644 (file)
@@ -1,12 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2011
  * eInfochips Ltd. <www.einfochips.com>
- * Written-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
+ * Written-by: Ajay Bhargav <contact@8051projects.net>
  *
  * (C) Copyright 2010
  * Marvell Semiconductor <www.marvell.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __MVGPIO_H__
@@ -14,9 +13,8 @@
 
 #include <common.h>
 
-#ifdef CONFIG_SHEEVA_88SV331xV5
 /*
- * GPIO Register map for SHEEVA 88SV331xV5
+ * GPIO Register map for Marvell SOCs
  */
 struct gpio_reg {
        u32 gplr;       /* Pin Level Register - 0x0000 */
@@ -51,8 +49,5 @@ struct gpio_reg {
        u32 pad12[2];
        u32 apmask;     /* Bitwise Mask of Edge Detect Register - 0x009C */
 };
-#else
-#error "CPU core subversion not defined"
-#endif
 
 #endif /* __MVGPIO_H__ */