phy: Fix possible NULL pointer deference
[oweals/u-boot.git] / drivers / gpio / pic32_gpio.c
index e838ad45a8c742c5e622db857036319bbeceed70..bb1ad256fac0d6ebf9e01497c4d17a43f68f6e38 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2015 Microchip Technology Inc
  * Purna Chandra Mandal <purna.mandal@microchip.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -11,6 +10,7 @@
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/bitops.h>
 #include <linux/compat.h>
 #include <mach/pic32.h>