diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index b33091cdc..66a074e0e 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -1609,7 +1609,6 @@ msEnableSharedPixmapFlipping(RRCrtcPtr crtc, PixmapPtr front, PixmapPtr back) ScreenPtr screen = crtc->pScreen; ScrnInfoPtr scrn = xf86ScreenToScrn(screen); modesettingPtr ms = modesettingPTR(scrn); - EntityInfoPtr pEnt = ms->pEnt; xf86CrtcPtr xf86Crtc = crtc->devPrivate; if (!xf86Crtc) @@ -1624,9 +1623,9 @@ msEnableSharedPixmapFlipping(RRCrtcPtr crtc, PixmapPtr front, PixmapPtr back) return FALSE; #ifdef XSERVER_PLATFORM_BUS - if (pEnt->location.type == BUS_PLATFORM) { - char *syspath = - xf86_platform_device_odev_attributes(pEnt->location.id.plat)-> + if (ms->pEnt->location.type == BUS_PLATFORM) { + const char *syspath = + xf86_platform_device_odev_attributes(ms->pEnt->location.id.plat)-> syspath; /* Not supported for devices using USB transport due to misbehaved