From: Al Viro <viro@ftp.linux.org.uk>
To: linux-kernel@vger.kernel.org
Cc: adaplas@pol.net
Subject: [PATCH 1/8] Revert "[PATCH] aty: remove unnecessary CONFIG_PCI"
Date: Wed, 08 Feb 2006 20:01:38 +0000 [thread overview]
Message-ID: <E1F6vVS-0008BY-JX@ZenIV.linux.org.uk> (raw)
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
reply other threads:[~2006-02-08 20:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1F6vVS-0008BY-JX@ZenIV.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=adaplas@pol.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®