diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-08 16:52:48 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-24 14:31:27 +0200 |
commit | 87424e1bffeaea7bf9e2b8afc16fe584a8641e5e (patch) | |
tree | 0f73de2c085ddf0d5db877131df69e1676ca3f42 /drivers/video/omap2/displays | |
parent | 8d8aa61dcf8721021cd5c0c86a14ef944535fa54 (diff) | |
download | op-kernel-dev-87424e1bffeaea7bf9e2b8afc16fe584a8641e5e.zip op-kernel-dev-87424e1bffeaea7bf9e2b8afc16fe584a8641e5e.tar.gz |
OMAP: DSS2: move get/set_rotate()
Move get/set_rotate() from omap_dss_device to omap_dss_driver.
This is part of a larger patch-set, which moves the control from omapdss
driver to the display driver.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index 4d64449..8f90de0 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c @@ -772,16 +772,21 @@ static int taal_rotate(struct omap_dss_device *dssdev, u8 rotate) dev_dbg(&dssdev->dev, "rotate %d\n", rotate); + dsi_bus_lock(); + if (td->enabled) { r = taal_set_addr_mode(rotate, td->mirror); - if (r) - return r; + goto err; } td->rotate = rotate; + dsi_bus_unlock(); return 0; +err: + dsi_bus_unlock(); + return r; } static u8 taal_get_rotate(struct omap_dss_device *dssdev) |