summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2014-08-09 14:58:06 +0100
committerRussell King <rmk@arm.linux.org.uk>2014-08-14 01:11:23 +0100
commit6f94ce02b4ce10105fec71ac894b93ced880a646 (patch)
tree17ca451c129e0cfc75f90eff2c5fdd86057aba41
parenta180e2401ab92b62c7f70e27b1805b7289b81459 (diff)
downloadxf86-video-armada-6f94ce02b4ce10105fec71ac894b93ced880a646.tar.gz
src: use xf86ScreenToScrn(pScreen)
Use xf86ScreenToScrn(pScreen) rather than directly converting via xf86Screens. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/armada_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/armada_drm.c b/src/armada_drm.c
index 8914835..c9aabc7 100644
--- a/src/armada_drm.c
+++ b/src/armada_drm.c
@@ -346,7 +346,7 @@ static Bool armada_drm_CloseScreen(CLOSE_SCREEN_ARGS_DECL)
static Bool armada_drm_CreateScreenResources(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
struct armada_drm_info *arm = GET_ARMADA_DRM_INFO(pScrn);
Bool ret;