linux-mips
[Top] [All Lists]

[PATCH]: Fix SGI O2 Compile error in drivers/video/gbefb.c

To: Linux MIPS List <linux-mips@linux-mips.org>
Subject: [PATCH]: Fix SGI O2 Compile error in drivers/video/gbefb.c
From: Kumba <kumba@gentoo.org>
Date: Thu, 19 Jan 2006 09:16:19 -0500
Cc: Ralf Baechle <ralf@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 1.5 (Windows/20051201)

Around line ~1247, a sysfs function call uses the wrong parameter, and thus breaks a build on SGI O2 with current git. The following patch fixes this.


--Kumba

--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees

"Such is oft the course of deeds that move the wheels of the world: small hands do them because they must, while the eyes of the great are elsewhere." --Elrond
diff -Naurp linux-2.6.15.1.orig/drivers/video/gbefb.c 
linux-2.6.15.1/drivers/video/gbefb.c
--- linux-2.6.15.1.orig/drivers/video/gbefb.c   2006-01-02 22:21:10.000000000 
-0500
+++ linux-2.6.15.1/drivers/video/gbefb.c        2006-01-18 23:22:29.000000000 
-0500
@@ -1244,7 +1244,7 @@ static int __devexit gbefb_remove(struct
                          (void *)gbe_tiles.cpu, gbe_tiles.dma);
        release_mem_region(GBE_BASE, sizeof(struct sgi_gbe));
        iounmap(gbe);
-       gbefb_remove_sysfs(dev);
+       gbefb_remove_sysfs(&p_dev->dev);
        framebuffer_release(info);
 
        return 0;
<Prev in Thread] Current Thread [Next in Thread>