From 8793c7fd4ba7d1b3e2eff3f2c18d042ee9bb3f62 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 14 Jul 2006 09:11:39 -0700 Subject: [PATCH] Refactor identical xf86InitInt10 function from generic.c and linux.c to helper_exec.c. --- hw/xfree86/int10/generic.c | 6 ------ hw/xfree86/int10/helper_exec.c | 6 ++++++ hw/xfree86/os-support/linux/int10/linux.c | 6 ------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c index 69596d48e..03fc89c96 100644 --- a/hw/xfree86/int10/generic.c +++ b/hw/xfree86/int10/generic.c @@ -62,12 +62,6 @@ static void UnmapVRam(xf86Int10InfoPtr pInt); static void *sysMem = NULL; -xf86Int10InfoPtr -xf86InitInt10(int entityIndex) -{ - return xf86ExtendedInitInt10(entityIndex, 0); -} - xf86Int10InfoPtr xf86ExtendedInitInt10(int entityIndex, int Flags) { diff --git a/hw/xfree86/int10/helper_exec.c b/hw/xfree86/int10/helper_exec.c index 1809e2d95..97ed75758 100644 --- a/hw/xfree86/int10/helper_exec.c +++ b/hw/xfree86/int10/helper_exec.c @@ -685,3 +685,9 @@ xf86Int10SaveRestoreBIOSVars(xf86Int10InfoPtr pInt, Bool save) xf86UnMapVidMem(pInt->scrnIndex,base - BIOS_SCRATCH_OFF ,pagesize); } #endif + +xf86Int10InfoPtr +xf86InitInt10(int entityIndex) +{ + return xf86ExtendedInitInt10(entityIndex, 0); +} diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c index a91137810..64087a2cc 100644 --- a/hw/xfree86/os-support/linux/int10/linux.c +++ b/hw/xfree86/os-support/linux/int10/linux.c @@ -78,12 +78,6 @@ static Int10LinuxSubModuleState int10LinuxLoadSubModule(ScrnInfoPtr pScrn); #endif /* DoSubModules */ -xf86Int10InfoPtr -xf86InitInt10(int entityIndex) -{ - return xf86ExtendedInitInt10(entityIndex, 0); -} - xf86Int10InfoPtr xf86ExtendedInitInt10(int entityIndex, int Flags) {