]> err.no Git - linux-2.6/commitdiff
[PATCH] m68k: atyfb_base compile fix for CONFIG_PCI=n
authorRoman Zippel <zippel@linux-m68k.org>
Fri, 23 Jun 2006 09:04:53 +0000 (02:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:00 +0000 (07:43 -0700)
The atyfb_driver structure is only available if CONFIG_PCI is set.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/aty/atyfb_base.c

index d9d7d3c4cae2ed83b81b4b8db846d7fa8d826ed6..eb6aa42be60eb8cf6413c9106e4c270f4ec4f4f2 100644 (file)
@@ -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);