]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/common/common.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / usb / common / common.c
index 35c2dc18d9554eb3b75f0eff4d65e0e2f8f99733..17a0ab23ff536c563be2cc414e4ca6ef39ea3a7e 100644 (file)
@@ -1,14 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Provides code common for host and device side USB.
  *
  * (C) Copyright 2016
  *     Texas Instruments Incorporated, <www.ti.com>
- *
- * SPDX-License-Identifier:     GPL-2.0+
  */
 
 #include <common.h>
-#include <libfdt.h>
+#include <linux/libfdt.h>
 #include <linux/usb/otg.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -28,7 +27,7 @@ enum usb_dr_mode usb_get_dr_mode(int node)
 
        dr_mode = fdt_getprop(fdt, node, "dr_mode", NULL);
        if (!dr_mode) {
-               error("usb dr_mode not found\n");
+               pr_err("usb dr_mode not found\n");
                return USB_DR_MODE_UNKNOWN;
        }