From b9afafec0a26eaec49e7f0ff08297c2bb795a9c2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 3 Apr 2012 11:08:09 +0100 Subject: geode: fix compile on x86-64 in tinderbox. geode_ddc.c: In function 'GeodeI2CInit': geode_ddc.c:158: error: cast to pointer from integer of different size Signed-off-by: Dave Airlie --- src/geode_ddc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geode_ddc.c b/src/geode_ddc.c index 086dbb1..4691d12 100644 --- a/src/geode_ddc.c +++ b/src/geode_ddc.c @@ -155,7 +155,7 @@ GeodeI2CInit(ScrnInfoPtr pScrni, I2CBusPtr * ptr, char *name) bus->I2CGetBits = geode_ddc_getbits; bus->I2CPutBits = geode_ddc_putbits; - bus->DriverPrivate.ptr = (void *)(ddciobase); + bus->DriverPrivate.ptr = (void *)(unsigned long)(ddciobase); if (!xf86I2CBusInit(bus)) return FALSE; -- cgit v1.2.3