msm: spm_devices: Disable SPM APIs when device isn't registered

If the SPM device isn't registered, then the SPM APIs should fail
returning proper error conditions. Failure to do so could cause data
abort when device writes to a memory address that isn't initialized.

Change-Id: I3903bf40491d1f51a3578f9ae950a992060ab121
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
1 file changed