]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: fix argument 2 of rproc_mem_entry_init
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Thu, 17 Oct 2019 11:59:52 +0000 (12:59 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 9 Nov 2019 01:20:47 +0000 (17:20 -0800)
commit32f48578c285440c79299b4e62f887fd48c8b82b
treeb0d47d4f73765e867a8cc4997a71d48627100734
parentdfbcccb59af6632dd21e70ab363323f3d52602cf
remoteproc: fix argument 2 of rproc_mem_entry_init

The rproc_mem_entry_init() call takes a pointer to a vm
as the second argument. The code is currently using a
plain 0 as "NULL". Change to using NULL to fix the
following sparse warnings:

drivers/remoteproc/remoteproc_core.c:339:49: warning: Using plain integer as NULL pointer
drivers/remoteproc/remoteproc_core.c:916:46: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c