From: Jon S. <jon...@gm...> - 2005-03-13 23:54:53
|
This should be a more general fix. Mikael can you give it a try on ppc since I don't have one? If you have time it would also be helpful if you could try building all of the ppc drivers both as modules and built-in just to make sure they build. There are 77 framebuffer drivers on eight platforms that need to be checked. I tried to get them all right but I don't own all of the needed hardware. -- Jon Smirl jon...@gm... ===== drivers/video/Makefile 1.120 vs edited ===== --- 1.120/drivers/video/Makefile 2005-03-10 03:39:10 -05:00 +++ edited/drivers/video/Makefile 2005-03-13 16:56:53 -05:00 @@ -10,6 +10,9 @@ obj-$(CONFIG_FB) += fb.o fb-y := fbmem.o fbmon.o fbcmap.o fbsysfs.o modedb.o +ifdef $(CONFIG-PPC) +fb-y += macmodes.o +endif fb-objs := $(fb-y) obj-$(CONFIG_FB_CFB_FILLRECT) += cfbfillrect.o @@ -41,9 +44,9 @@ obj-$(CONFIG_FB_NEOMAGIC) += neofb.o vgastate.o obj-$(CONFIG_FB_VIRGE) += virgefb.o obj-$(CONFIG_FB_3DFX) += tdfxfb.o -obj-$(CONFIG_FB_CONTROL) += controlfb.o macmodes.o -obj-$(CONFIG_FB_PLATINUM) += platinumfb.o macmodes.o -obj-$(CONFIG_FB_VALKYRIE) += valkyriefb.o macmodes.o +obj-$(CONFIG_FB_CONTROL) += controlfb.o +obj-$(CONFIG_FB_PLATINUM) += platinumfb.o +obj-$(CONFIG_FB_VALKYRIE) += valkyriefb.o obj-$(CONFIG_FB_CT65550) += chipsfb.o obj-$(CONFIG_FB_IMSTT) += imsttfb.o obj-$(CONFIG_FB_S3TRIO) += S3triofb.o @@ -61,7 +64,7 @@ obj-$(CONFIG_FB_SGIVW) += sgivwfb.o obj-$(CONFIG_FB_ACORN) += acornfb.o obj-$(CONFIG_FB_ATARI) += atafb.o -obj-$(CONFIG_FB_MAC) += macfb.o macmodes.o +obj-$(CONFIG_FB_MAC) += macfb.o obj-$(CONFIG_FB_HGA) += hgafb.o obj-$(CONFIG_FB_IGA) += igafb.o obj-$(CONFIG_FB_APOLLO) += dnfb.o ===== drivers/video/macmodes.c 1.6 vs edited ===== --- 1.6/drivers/video/macmodes.c 2002-10-29 15:05:45 -05:00 +++ edited/drivers/video/macmodes.c 2005-03-13 17:01:03 -05:00 @@ -281,6 +281,7 @@ var->vmode = mode->vmode; return 0; } +EXPORT_SYMBOL(mac_vmode_to_var) /** @@ -326,6 +327,7 @@ } return -EINVAL; } +EXPORT_SYMBOL(mac_var_to_vmode) /** @@ -348,6 +350,7 @@ break; return map->vmode; } +EXPORT_SYMBOL(mac_map_monitor_sense) /** @@ -370,7 +373,7 @@ * */ -int __init mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, +int mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, const char *mode_option, unsigned int default_bpp) { const struct fb_videomode *db = NULL; @@ -384,3 +387,4 @@ return fb_find_mode(var, info, mode_option, db, dbsize, &mac_modedb[DEFAULT_MODEDB_INDEX], default_bpp); } +EXPORT_SYMBOL(mac_find_mode) ===== drivers/video/macmodes.h 1.3 vs edited ===== --- 1.3/drivers/video/macmodes.h 2002-10-29 14:41:43 -05:00 +++ edited/drivers/video/macmodes.h 2005-03-13 17:01:32 -05:00 @@ -55,7 +55,7 @@ extern int mac_var_to_vmode(const struct fb_var_screeninfo *var, int *vmode, int *cmode); extern int mac_map_monitor_sense(int sense); -extern int __init mac_find_mode(struct fb_var_screeninfo *var, +extern int mac_find_mode(struct fb_var_screeninfo *var, struct fb_info *info, const char *mode_option, unsigned int default_bpp); |