soc: qcom: rpmh: add cam_rsc check in rpmh_rsc_get_device() API
This API is only meant for getting Camera RSC device, hence preventing any other client to use it for any other device. Change-Id: I6b1cef1cd98eb1d0c5fa92b67a2af141022ec7a3 Signed-off-by: Sneh Mankad <quic_smankad@quicinc.com>
This commit is contained in:
parent
3024e8cdc1
commit
57c9b20c84
@ -1495,7 +1495,7 @@ const struct device *rpmh_rsc_get_device(const char *name, u32 drv_id)
|
||||
struct rsc_drv_top *rsc_top = rpmh_rsc_get_top_device(name);
|
||||
int i;
|
||||
|
||||
if (IS_ERR(rsc_top))
|
||||
if (IS_ERR(rsc_top) || strcmp(name, "cam_rsc"))
|
||||
return ERR_PTR(-ENODEV);
|
||||
|
||||
for (i = 0; i < rsc_top->drv_count; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user