dm: core: Create a new header file for 'compat' features
[oweals/u-boot.git] / drivers / usb / musb-new / musb_gadget_ep0.c
index 3cfcb2205ab1ac1a217302ad1fa74f08af005660..79e8222e3b3f7766ea6117154601e545dacb85de 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * MUSB OTG peripheral driver ep0 handling
  *
@@ -5,11 +6,10 @@
  * Copyright (C) 2005-2006 by Texas Instruments
  * Copyright (C) 2006-2007 Nokia Corporation
  * Copyright (C) 2008-2009 MontaVista Software, Inc. <source@mvista.com>
- *
- * SPDX-License-Identifier:    GPL-2.0
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/timer.h>
@@ -883,7 +883,7 @@ finish:
 
        default:
                /* "can't happen" */
-               WARN_ON(1);
+               assert_noisy(false);
                musb_writew(regs, MUSB_CSR0, MUSB_CSR0_P_SENDSTALL);
                musb->ep0_state = MUSB_EP0_STAGE_IDLE;
                break;