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:
parent
19b0249a5e
commit
771016f070
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user