dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array()
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 26 Sep 2019 13:43:54 +0000 (15:43 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:03 +0000 (08:40 -0600)
When DEVRES is not set, devm_kmalloc_array() is spelled
devm_kmaloc_array() (with one 'l' only).
Fixing it so that the name is the same with and without DEVRES.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/dm/device.h

index defda0aebcb66102513f4cad3ba4313e239c9376..44cc3d2bd0115a946df5a4da19719d0864bc8f98 100644 (file)
@@ -945,8 +945,8 @@ static inline void *devm_kzalloc(struct udevice *dev, size_t size, gfp_t gfp)
        return kzalloc(size, gfp);
 }
 
-static inline void *devm_kmaloc_array(struct udevice *dev,
-                                     size_t n, size_t size, gfp_t flags)
+static inline void *devm_kmalloc_array(struct udevice *dev,
+                                      size_t n, size_t size, gfp_t flags)
 {
        /* TODO: add kmalloc_array() to linux/compat.h */
        if (size != 0 && n > SIZE_MAX / size)