diff options
Diffstat (limited to 'drivers/video/via/via-core.c')
-rw-r--r-- | drivers/video/via/via-core.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/video/via/via-core.c b/drivers/video/via/via-core.c index dd58b530c0df..6e274825fb31 100644 --- a/drivers/video/via/via-core.c +++ b/drivers/video/via/via-core.c | |||
@@ -80,7 +80,7 @@ static inline int viafb_mmio_read(int reg) | |||
80 | */ | 80 | */ |
81 | static u32 viafb_enabled_ints; | 81 | static u32 viafb_enabled_ints; |
82 | 82 | ||
83 | static void __devinit viafb_int_init(void) | 83 | static void viafb_int_init(void) |
84 | { | 84 | { |
85 | viafb_enabled_ints = 0; | 85 | viafb_enabled_ints = 0; |
86 | 86 | ||
@@ -475,7 +475,7 @@ static int viafb_get_fb_size_from_pci(int chip_type) | |||
475 | /* | 475 | /* |
476 | * Figure out and map our MMIO regions. | 476 | * Figure out and map our MMIO regions. |
477 | */ | 477 | */ |
478 | static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev) | 478 | static int via_pci_setup_mmio(struct viafb_dev *vdev) |
479 | { | 479 | { |
480 | int ret; | 480 | int ret; |
481 | /* | 481 | /* |
@@ -550,8 +550,8 @@ static struct viafb_subdev_info { | |||
550 | }; | 550 | }; |
551 | #define N_SUBDEVS ARRAY_SIZE(viafb_subdevs) | 551 | #define N_SUBDEVS ARRAY_SIZE(viafb_subdevs) |
552 | 552 | ||
553 | static int __devinit via_create_subdev(struct viafb_dev *vdev, | 553 | static int via_create_subdev(struct viafb_dev *vdev, |
554 | struct viafb_subdev_info *info) | 554 | struct viafb_subdev_info *info) |
555 | { | 555 | { |
556 | int ret; | 556 | int ret; |
557 | 557 | ||
@@ -573,7 +573,7 @@ static int __devinit via_create_subdev(struct viafb_dev *vdev, | |||
573 | return ret; | 573 | return ret; |
574 | } | 574 | } |
575 | 575 | ||
576 | static int __devinit via_setup_subdevs(struct viafb_dev *vdev) | 576 | static int via_setup_subdevs(struct viafb_dev *vdev) |
577 | { | 577 | { |
578 | int i; | 578 | int i; |
579 | 579 | ||
@@ -671,8 +671,7 @@ static int via_resume(struct pci_dev *pdev) | |||
671 | } | 671 | } |
672 | #endif /* CONFIG_PM */ | 672 | #endif /* CONFIG_PM */ |
673 | 673 | ||
674 | static int __devinit via_pci_probe(struct pci_dev *pdev, | 674 | static int via_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
675 | const struct pci_device_id *ent) | ||
676 | { | 675 | { |
677 | int ret; | 676 | int ret; |
678 | 677 | ||
@@ -716,7 +715,7 @@ out_disable: | |||
716 | return ret; | 715 | return ret; |
717 | } | 716 | } |
718 | 717 | ||
719 | static void __devexit via_pci_remove(struct pci_dev *pdev) | 718 | static void via_pci_remove(struct pci_dev *pdev) |
720 | { | 719 | { |
721 | via_teardown_subdevs(); | 720 | via_teardown_subdevs(); |
722 | via_fb_pci_remove(pdev); | 721 | via_fb_pci_remove(pdev); |
@@ -725,7 +724,7 @@ static void __devexit via_pci_remove(struct pci_dev *pdev) | |||
725 | } | 724 | } |
726 | 725 | ||
727 | 726 | ||
728 | static struct pci_device_id via_pci_table[] __devinitdata = { | 727 | static struct pci_device_id via_pci_table[] = { |
729 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_CLE266_DID), | 728 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_CLE266_DID), |
730 | .driver_data = UNICHROME_CLE266 }, | 729 | .driver_data = UNICHROME_CLE266 }, |
731 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_K400_DID), | 730 | { PCI_DEVICE(PCI_VENDOR_ID_VIA, UNICHROME_K400_DID), |
@@ -760,7 +759,7 @@ static struct pci_driver via_driver = { | |||
760 | .name = "viafb", | 759 | .name = "viafb", |
761 | .id_table = via_pci_table, | 760 | .id_table = via_pci_table, |
762 | .probe = via_pci_probe, | 761 | .probe = via_pci_probe, |
763 | .remove = __devexit_p(via_pci_remove), | 762 | .remove = via_pci_remove, |
764 | #ifdef CONFIG_PM | 763 | #ifdef CONFIG_PM |
765 | .suspend = via_suspend, | 764 | .suspend = via_suspend, |
766 | .resume = via_resume, | 765 | .resume = via_resume, |