Revert "[PATCH] aty: remove unnecessary CONFIG_PCI"
PATCH 1/8 Revert "[PATCH] aty: remove unnecessary CONFIG_PCI"
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 <[email protected]>
---
drivers/video/aty/atyfb_base.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
f2dba384a7e37d0770256e5e947fc0292c339013
drivers/video/aty/atyfb_base.c +4 -0
@@ -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);
Signature · 1 line
0.99.9.GIT