]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/dwc3/linux-compat.h
usb: dwc3: core: make dwc3 core build in uboot
[karo-tx-uboot.git] / drivers / usb / dwc3 / linux-compat.h
index cbfb946ad32bbe0e4f98d5e57f9dafc86fec306e..b36f68fec866522a085798fd3eb75bc617aeef1b 100644 (file)
@@ -25,4 +25,14 @@ 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);
+}
+
+static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags)
+{
+       return kzalloc(n * size, flags);
+}
 #endif