secure_fw: crypto: Fix compilation with NV counter module disabled

Fix compilation error when NV counter module has been disabled.
Move nv_counter_permissions_check so that it is excluded from
compilation when PLATFORM_NV_COUNTER_MODULE_DISABLED is defined.
This function is referencing structs that do not exists because the
headers are excluded.

Change-Id: Ide5b082cdd2a7a346ba43c5f18098108c5d69764
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
1 file changed