summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSubramaniam Chanderashekarapuram <subramaniam.ca@ti.com>2012-06-14 12:42:33 -0500
committerAndy Green <andy.green@linaro.org>2012-09-07 13:05:35 +0800
commit6df8c18a506729978b162fab6a554b7d288c1572 (patch)
tree469f7ccbc0894bdaf2598c76890ed58177fae924 /drivers
parent326e152df24f46356f22927701ba1e64e6dfb16a (diff)
rpmsg: resmgr: omap: allow _device_scale to call mach->ops function
The _device_scale function in the rpmsg omap resmgr code was stubbed out previously as DVFS framework was not available in the kernel. This would be used by resources such as IVA and FDIF to request a frequency scale constraint. The DVFS code/framework implementation has been added lately, and the stubbed code has therefore been cleaned up to allow the _device_scale to actually call the .device_scale ops hook registered through the platform data. Change-Id: If8154a99fbcf4d7ddb200e0fae5215ea398912e2 Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rpmsg/omap_rpmsg_resmgr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rpmsg/omap_rpmsg_resmgr.c b/drivers/rpmsg/omap_rpmsg_resmgr.c
index 8cab7d654736..541380ddbd09 100644
--- a/drivers/rpmsg/omap_rpmsg_resmgr.c
+++ b/drivers/rpmsg/omap_rpmsg_resmgr.c
@@ -540,10 +540,8 @@ static int _device_scale(struct device *rdev, void *handle, unsigned long val)
{
struct rprm_gen_device_handle *obj = handle;
- return 0;
-
if (!mach_ops || !mach_ops->device_scale)
- return -ENOSYS;
+ return -ENOSYS;
return mach_ops->device_scale(rdev, obj->dev, val);
}