From: Jean-Jacques Hiblot Date: Thu, 26 Sep 2019 13:43:54 +0000 (+0200) Subject: dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array() X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=d8efa2ce2abe293c97576f47ccac708e233553b6;p=u-boot.git dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array() 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 Reviewed-by: Simon Glass --- diff --git a/include/dm/device.h b/include/dm/device.h index defda0aebc..44cc3d2bd0 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -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)