]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix compile warning in rivafb on ppc
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Sep 2004 03:30:15 +0000 (20:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:30:15 +0000 (20:30 -0700)
riva_get_EDID_i2c is only used on !CONFIG_PPC_OF, so don't compile it on
ppc either.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/riva/fbdev.c

index 2ab1175532ba3d7e333d146128d2e4c4576f7e20..8ba8e36845d8dbfdaa637c5d1c44820bf36ca70b 100644 (file)
@@ -1713,7 +1713,7 @@ static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd)
 }
 #endif /* CONFIG_PPC_OF */
 
-#ifdef CONFIG_FB_RIVA_I2C
+#if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF)
 static int __devinit riva_get_EDID_i2c(struct fb_info *info)
 {
        struct riva_par *par = (struct riva_par *) info->par;