Skip to contentSkip to conversation

aty: remove unnecessary CONFIG_PCI

PATCH Geert Uytterhoeven 1 participant 1 message Jan 10, 2006 1 message not in the archive Framebuffer layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 30 lines · Linux Kernel Mailing List

tree 2567482d480da5d320cc7af065f03716e41dbbd6
parent 2b4f2f4b0132afa9f441171285cca354377bf5d0
author Richard Knutsson <[email protected]> Tue, 10 Jan 2006 12:52:55 -0800 committer Linus Torvalds <[email protected]> Wed, 11 Jan 2006 00:01:42 -0800

[PATCH] aty: remove unnecessary CONFIG_PCI

 drivers/video/aty/atyfb_base.c |    4 ----
 1 files changed, 4 deletions(-)
drivers/video/aty/atyfb_base.c +0 -2
index 3fefdb0..d8195f7 100644
@@ -3692,9 +3692,7 @@ 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

drivers/video/aty/atyfb_base.c static int __init atyfb_init(void) · line 3705

Quoted 7 lines
drivers/video/aty/atyfb_base.c +0 -2
@@ -3703,9 +3701,7 @@ static int __init atyfb_init(void)
 
 static void __exit atyfb_exit(void)
 {
-#ifdef CONFIG_PCI
 	pci_unregister_driver(&atyfb_driver);
-#endif
 }

Have you compile-tested this? Since atyfb_driver is not defined if CONFIG_PCI is not set and pci_register_driver() is not a macro but an inline function (so the compiler will see the reference to atyfb_driver), I'm afraid it will break the non-CONFIG_PCI build.

[Disclaimer: I'm not in a position to compile-test it myself right now]

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click