remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 2 Nov 2020 07:40:07 +0000 (16:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:48 +0000 (11:53 +0100)
commit01e2c27b8a30e5fc2211d28fc9133d8eca37adc8
treeae93fe86f503581848cec4ffa0a9e306aa332c80
parentc7fd58cc440bc870d550659104c0bfca96457f14
remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF

[ Upstream commit e59aef4edc45133ccb10b8e962cb74dcf1e3240b ]

Now that this driver can be compiled with COMPILE_TEST, we have no
guarantee that CONFIG_OF will also be defined. When that happens, a
warning about mtk_scp_of_match being defined but unused will be reported
so make sure this variable is only defined if of_match_ptr() actually
uses it.

Fixes: cbd2dca74926c0e4610c40923cc786b732c9e8ef remoteproc: scp: add COMPILE_TEST dependency
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Link: https://lore.kernel.org/r/20201102074007.299222-1-acourbot@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/mtk_scp.c