X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fdwc3%2Flinux-compat.h;h=82793765bea24d05937de623b789999244e11127;hb=5ebc7c7e27780ce9a16289eeb87290eebd248ea9;hp=58c47167bbf6987072adc00f68545eeb679aec25;hpb=18be4cb151f066cc0ffff40819a258376717f8ed;p=oweals%2Fu-boot.git diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h index 58c47167bb..82793765be 100644 --- a/drivers/usb/dwc3/linux-compat.h +++ b/drivers/usb/dwc3/linux-compat.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /** * linux-compat.h - DesignWare USB3 Linux Compatibiltiy Adapter Header * @@ -5,21 +6,12 @@ * * Authors: Kishon Vijay Abraham I * - * Taken from Linux Kernel v3.16 (drivers/usb/dwc3/core.c) and ported - * to uboot. - * - * SPDX-License-Identifier: GPL-2.0 - * */ #ifndef __DWC3_LINUX_COMPAT__ #define __DWC3_LINUX_COMPAT__ -#define pr_debug(format) debug(format) -#define WARN(val, format, arg...) debug(format, ##arg) -#define WARN_ON_ONCE(val) debug("Error %d\n", val) - -#define BUILD_BUG_ON_NOT_POWER_OF_2(n) +#define dev_WARN(dev, format, arg...) debug(format, ##arg) static inline size_t strlcat(char *dest, const char *src, size_t n) {