* [PATCH 1/8] Revert "[PATCH] aty: remove unnecessary CONFIG_PCI"
@ 2006-02-08 20:01 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-02-08 20:01 UTC (permalink / raw)
To: linux-kernel; +Cc: adaplas
Date: 1137633692 -0500
This reverts 8416131ded5e491ecc2947d1ffaedf64725bb7a3 commit.
The hell it was unnecessary - atyfb_driver is undefined if we don't
have CONFIG_PCI and pci_register_driver() is always an inline, so
it cares for arguments being sane.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
drivers/video/aty/atyfb_base.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
f2dba384a7e37d0770256e5e947fc0292c339013
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
index 485be38..c02a0f4 100644
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -3719,7 +3719,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
@@ -3728,7 +3730,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);
--
0.99.9.GIT
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-08 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 20:01 [PATCH 1/8] Revert "[PATCH] aty: remove unnecessary CONFIG_PCI" Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®