Message ID | 20190926134354.26423-1-jjhiblot@ti.com |
---|---|
State | Accepted |
Commit | d8efa2ce2abe293c97576f47ccac708e233553b6 |
Delegated to: | Simon Glass |
Headers | show |
Series | [U-Boot] dm: device: Fix typo in the non-DEVRES version of devm_kmalloc_array() | expand |
On Thu, 26 Sep 2019 at 07:44, Jean-Jacques Hiblot <jjhiblot@ti.com> wrote: > > 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> > --- > include/dm/device.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass <sjg@chromium.org>
On Thu, 26 Sep 2019 at 07:44, Jean-Jacques Hiblot <jjhiblot@ti.com> wrote: > > 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> > --- > include/dm/device.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass <sjg@chromium.org> Applied to u-boot-dm, thanks!
diff --git a/include/dm/device.h b/include/dm/device.h index 27a6d7b9fd..9e34204b13 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -927,8 +927,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)
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> --- include/dm/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)