Merge "soc: qcom: rpmh: add cam_rsc check in rpmh_rsc_get_device() API"

This commit is contained in:
QCTECMDR Service 2024-08-07 07:27:45 -07:00 committed by Gerrit - the friendly Code Review server
commit a1e62beffe

View File

@ -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++) {