Re: [PATCH] remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF

2020-11-04 Thread Bjorn Andersson
On Wed 04 Nov 13:05 CST 2020, Mathieu Poirier wrote: > Hi Alexander, > > On Mon, Nov 02, 2020 at 04:40:07PM +0900, Alexandre Courbot wrote: > > 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 ab

Re: [PATCH] remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF

2020-11-04 Thread Mathieu Poirier
Hi Alexander, On Mon, Nov 02, 2020 at 04:40:07PM +0900, Alexandre Courbot wrote: > 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 > s

[PATCH] remoteproc/mtk_scp: surround DT device IDs with CONFIG_OF

2020-11-01 Thread Alexandre Courbot
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: cbd2