video: tegra: host: prune repeated code related to runtime pm
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Fri, 24 May 2013 14:22:28 +0000 (19:22 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:16:07 +0000 (13:16 -0700)
commit34e1e329cc06b769fd6890f128037fb15dcefbb4
tree85d5b272520fa832c1a9af99649bc13f37e319d7
parentfd40add3f0f038dc57b20902d7aca040b4a24335
video: tegra: host: prune repeated code related to runtime pm

some notable changes are as below:

- wherever possible replace platform_get_drvdata() with
dev_get_drvdata. this is mostly done for runtime pm
call-backs which have argument struct device *
- adjust the clock on/off to take struct device * argument
- add a member generic_pm_domain inside nvhost_private_data
and use to hold the pm domain for modules which support
power partition in hardware
- adjust the power on/off call-backs of pm domain to retrieve
owner device's platform data and use it to perform the
operations

Change-Id: I6eb9225dc4a499f9ca2cb1c9f0fbfbd7f9fbaa0a
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/232619
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
13 files changed:
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/bus_client.h
drivers/video/tegra/host/gr2d/gr2d.c
drivers/video/tegra/host/gr3d/gr3d.c
drivers/video/tegra/host/host1x/host1x.c
drivers/video/tegra/host/isp/isp.c
drivers/video/tegra/host/mpe/mpe.c
drivers/video/tegra/host/msenc/msenc.c
drivers/video/tegra/host/nvhost_acm.c
drivers/video/tegra/host/nvhost_acm.h
drivers/video/tegra/host/tsec/tsec.c
drivers/video/tegra/host/vi/vi.c
include/linux/nvhost.h