Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48052
b: refs/heads/master
c: 1b2f2fe
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Feb 12, 2007
1 parent d8c7327 commit 7597311
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7488ce38121fc92aee847c51ac74dced1d48c3a
refs/heads/master: 1b2f2fe8ac0273ae9a9b480b799ce62d832168cb
18 changes: 7 additions & 11 deletions trunk/drivers/video/tgafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ static void tgafb_imageblit(struct fb_info *, const struct fb_image *);
static void tgafb_fillrect(struct fb_info *, const struct fb_fillrect *);
static void tgafb_copyarea(struct fb_info *, const struct fb_copyarea *);

static int tgafb_pci_register(struct pci_dev *, const struct pci_device_id *);
static void tgafb_pci_unregister(struct pci_dev *);
static int __devinit tgafb_pci_register(struct pci_dev *,
const struct pci_device_id *);
static void __devexit tgafb_pci_unregister(struct pci_dev *);

static const char *mode_option = "640x480@60";

Expand Down Expand Up @@ -1454,7 +1455,7 @@ tgafb_pci_register(struct pci_dev *pdev, const struct pci_device_id *ent)
return ret;
}

static void __exit
static void __devexit
tgafb_pci_unregister(struct pci_dev *pdev)
{
struct fb_info *info = pci_get_drvdata(pdev);
Expand All @@ -1470,16 +1471,14 @@ tgafb_pci_unregister(struct pci_dev *pdev)
framebuffer_release(info);
}

#ifdef MODULE
static void __exit
static void __devexit
tgafb_exit(void)
{
pci_unregister_driver(&tgafb_driver);
}
#endif /* MODULE */

#ifndef MODULE
int __init
static int __devinit
tgafb_setup(char *arg)
{
char *this_opt;
Expand All @@ -1501,7 +1500,7 @@ tgafb_setup(char *arg)
}
#endif /* !MODULE */

int __init
static int __devinit
tgafb_init(void)
{
#ifndef MODULE
Expand All @@ -1519,10 +1518,7 @@ tgafb_init(void)
*/

module_init(tgafb_init);

#ifdef MODULE
module_exit(tgafb_exit);
#endif

MODULE_DESCRIPTION("framebuffer driver for TGA chipset");
MODULE_LICENSE("GPL");

0 comments on commit 7597311

Please sign in to comment.