diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-25 13:53:18 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 13:00:53 +0200 |
commit | 820caabf68e6ebddbb48cf1770338682cfa318c5 (patch) | |
tree | eb59779ef3e95d7b42642e6182557a67897f1995 /drivers/gpu/drm/omapdrm | |
parent | OMAPDSS: add THIS_MODULE owner to DSS outputs (diff) | |
download | linux-820caabf68e6ebddbb48cf1770338682cfa318c5.tar.xz linux-820caabf68e6ebddbb48cf1770338682cfa318c5.zip |
OMAPDSS: output: increase refcount in find_output funcs
Now that omap_dss_output has been combined into omap_dss_device, we can
add ref counting for the relevant output functions also.
This patch adds omap_dss_get_device() calls to the various find_output()
style functions. This, of course, means that the users of those
find_output functions need to do a omap_dss_put_device() after use.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 78a78c6ea576..2c2316a59b6c 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -277,6 +277,8 @@ static int omap_modeset_init(struct drm_device *dev) if (supported_outputs & output->id) encoder->possible_crtcs |= (1 << id); } + + omap_dss_put_device(output); } DBG("registered %d planes, %d crtcs, %d encoders and %d connectors\n", |