modesetting: drop platform_dev pointer.

This isn't used anywhere, so no point storing it until we need it.

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2015-11-16 09:05:26 +10:00 committed by Dave Airlie
parent 19b0249a5e
commit 771016f070
2 changed files with 1 additions and 10 deletions

View File

@ -388,7 +388,6 @@ ms_platform_probe(DriverPtr driver,
{
DevUnion *pPriv;
EntityInfoPtr pEnt;
modesettingEntPtr pMSEnt;
xf86SetEntitySharable(entity_num);
@ -401,13 +400,8 @@ ms_platform_probe(DriverPtr driver,
xf86SetEntityInstanceForScreen(scrn, pEnt->index, xf86GetNumEntityInstances(pEnt->index) - 1);
if (!pPriv->ptr) {
if (!pPriv->ptr)
pPriv->ptr = xnfcalloc(sizeof(modesettingEntRec), 1);
pMSEnt = pPriv->ptr;
} else {
pMSEnt = pPriv->ptr;
}
pMSEnt->platform_dev = dev;
}
}

View File

@ -61,9 +61,6 @@ typedef struct
unsigned long fd_wakeup_registered; /* server generation for which fd has been registered for wakeup handling */
int fd_wakeup_ref;
unsigned int assigned_crtcs;
#ifdef XSERVER_PLATFORM_BUS
struct xf86_platform_device *platform_dev;
#endif
} modesettingEntRec, *modesettingEntPtr;
typedef void (*ms_drm_handler_proc)(uint64_t frame,