X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fdwc3%2Flinux-compat.h;h=82793765bea24d05937de623b789999244e11127;hb=5ebc7c7e27780ce9a16289eeb87290eebd248ea9;hp=5cbe377e3cd9a17fa6b15c57d4c8efd35b4d8f86;hpb=2ee87b0c1a5439e4ad6467cb8d5e8fb58922ca4b;p=oweals%2Fu-boot.git diff --git a/drivers/usb/dwc3/linux-compat.h b/drivers/usb/dwc3/linux-compat.h index 5cbe377e3c..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,14 +6,11 @@ * * Authors: Kishon Vijay Abraham I * - * SPDX-License-Identifier: GPL-2.0 - * */ #ifndef __DWC3_LINUX_COMPAT__ #define __DWC3_LINUX_COMPAT__ -#define WARN(val, format, arg...) debug(format, ##arg) #define dev_WARN(dev, format, arg...) debug(format, ##arg) static inline size_t strlcat(char *dest, const char *src, size_t n) @@ -21,9 +19,4 @@ static inline size_t strlcat(char *dest, const char *src, size_t n) return strlen(dest) + strlen(src); } -static inline void *devm_kzalloc(struct device *dev, unsigned int size, - unsigned int flags) -{ - return kzalloc(size, flags); -} #endif