aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2006-06-23 05:04:53 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 10:43:00 -0400
commit078517e4118dc60a97c4eda127b849383eb26f8e (patch)
tree894d17bb1979dc894f12cb22d95507db1330536c /drivers/video
parent2c3e0262e0cb5395fe02cdf27c229ee7414ab0c0 (diff)
[PATCH] m68k: atyfb_base compile fix for CONFIG_PCI=n
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/aty/atyfb_base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
index d9d7d3c4cae2..eb6aa42be60e 100644
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -3722,7 +3722,9 @@ static int __init atyfb_init(void)
3722 atyfb_setup(option); 3722 atyfb_setup(option);
3723#endif 3723#endif
3724 3724
3725#ifdef CONFIG_PCI
3725 pci_register_driver(&atyfb_driver); 3726 pci_register_driver(&atyfb_driver);
3727#endif
3726#ifdef CONFIG_ATARI 3728#ifdef CONFIG_ATARI
3727 atyfb_atari_probe(); 3729 atyfb_atari_probe();
3728#endif 3730#endif
@@ -3731,7 +3733,9 @@ static int __init atyfb_init(void)
3731 3733
3732static void __exit atyfb_exit(void) 3734static void __exit atyfb_exit(void)
3733{ 3735{
3736#ifdef CONFIG_PCI
3734 pci_unregister_driver(&atyfb_driver); 3737 pci_unregister_driver(&atyfb_driver);
3738#endif
3735} 3739}
3736 3740
3737module_init(atyfb_init); 3741module_init(atyfb_init);