Skip to content

Commit

Permalink
[PATCH] m68k: atyfb_base compile fix for CONFIG_PCI=n
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Jun 23, 2006
1 parent 2c3e026 commit 078517e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -3722,7 +3722,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
Expand All @@ -3731,7 +3733,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);
Expand Down

0 comments on commit 078517e

Please sign in to comment.