From: Roman Zippel The atyfb_driver structure is only available if CONFIG_PCI is set. Signed-off-by: Roman Zippel Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/aty/atyfb_base.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN drivers/video/aty/atyfb_base.c~m68k-atyfb_base-compile-fix-for-config_pci=n drivers/video/aty/atyfb_base.c --- devel/drivers/video/aty/atyfb_base.c~m68k-atyfb_base-compile-fix-for-config_pci=n 2006-05-24 18:32:21.000000000 -0700 +++ devel-akpm/drivers/video/aty/atyfb_base.c 2006-05-24 18:32:21.000000000 -0700 @@ -3722,7 +3722,9 @@ static int __init atyfb_init(void) atyfb_setup(option); #endif +#ifdef CONFIG_PCI pci_register_driver(&atyfb_driver); +#endif #ifdef CONFIG_ATARI atyfb_atari_probe(); #endif @@ -3731,7 +3733,9 @@ static int __init atyfb_init(void) static void __exit atyfb_exit(void) { +#ifdef CONFIG_PCI pci_unregister_driver(&atyfb_driver); +#endif } module_init(atyfb_init); _