]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
remoteproc: k3-r5: Fix error check on devm_remap_wc()
authorSuman Anna <s-anna@ti.com>
Mon, 7 Dec 2020 23:20:39 +0000 (17:20 -0600)
committerSuman Anna <s-anna@ti.com>
Mon, 7 Dec 2020 23:24:37 +0000 (17:24 -0600)
commit57315da300621d954112d67b9ec813c34b0a4679
treeafa66169f12770349c23a10a59db84a97a580471
parentf1a90afa4c701d5bd98d79b71bad41614335d435
remoteproc: k3-r5: Fix error check on devm_remap_wc()

The devm_ioremap_wc() function return a NULL pointer on failures, but the
logic in the k3_r5_core_of_get_internal_memories() is incorrectly using
an IS_ERR check. Fix this erroneous return value check.

Fixes: 78414dbc126f ("remoteproc/k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/ti_k3_r5_remoteproc.c