diff options
Diffstat (limited to 'drivers/watchdog/hpwdt.c')
-rw-r--r-- | drivers/watchdog/hpwdt.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index ae60406ea8a1..8717255ec7be 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -212,7 +212,7 @@ asm(".text \n\t" | |||
212 | * 0 : SUCCESS | 212 | * 0 : SUCCESS |
213 | * <0 : FAILURE | 213 | * <0 : FAILURE |
214 | */ | 214 | */ |
215 | static int __devinit cru_detect(unsigned long map_entry, | 215 | static int cru_detect(unsigned long map_entry, |
216 | unsigned long map_offset) | 216 | unsigned long map_offset) |
217 | { | 217 | { |
218 | void *bios32_map; | 218 | void *bios32_map; |
@@ -268,7 +268,7 @@ static int __devinit cru_detect(unsigned long map_entry, | |||
268 | /* | 268 | /* |
269 | * bios_checksum | 269 | * bios_checksum |
270 | */ | 270 | */ |
271 | static int __devinit bios_checksum(const char __iomem *ptr, int len) | 271 | static int bios_checksum(const char __iomem *ptr, int len) |
272 | { | 272 | { |
273 | char sum = 0; | 273 | char sum = 0; |
274 | int i; | 274 | int i; |
@@ -293,7 +293,7 @@ static int __devinit bios_checksum(const char __iomem *ptr, int len) | |||
293 | * 0 : SUCCESS | 293 | * 0 : SUCCESS |
294 | * <0 : FAILURE | 294 | * <0 : FAILURE |
295 | */ | 295 | */ |
296 | static int __devinit bios32_present(const char __iomem *p) | 296 | static int bios32_present(const char __iomem *p) |
297 | { | 297 | { |
298 | struct bios32_service_dir *bios_32_ptr; | 298 | struct bios32_service_dir *bios_32_ptr; |
299 | int length; | 299 | int length; |
@@ -323,7 +323,7 @@ static int __devinit bios32_present(const char __iomem *p) | |||
323 | return -ENODEV; | 323 | return -ENODEV; |
324 | } | 324 | } |
325 | 325 | ||
326 | static int __devinit detect_cru_service(void) | 326 | static int detect_cru_service(void) |
327 | { | 327 | { |
328 | char __iomem *p, *q; | 328 | char __iomem *p, *q; |
329 | int rc = -1; | 329 | int rc = -1; |
@@ -395,7 +395,7 @@ asm(".text \n\t" | |||
395 | * This function checks whether or not a SMBIOS/DMI record is | 395 | * This function checks whether or not a SMBIOS/DMI record is |
396 | * the 64bit CRU info or not | 396 | * the 64bit CRU info or not |
397 | */ | 397 | */ |
398 | static void __devinit dmi_find_cru(const struct dmi_header *dm, void *dummy) | 398 | static void dmi_find_cru(const struct dmi_header *dm, void *dummy) |
399 | { | 399 | { |
400 | struct smbios_cru64_info *smbios_cru64_ptr; | 400 | struct smbios_cru64_info *smbios_cru64_ptr; |
401 | unsigned long cru_physical_address; | 401 | unsigned long cru_physical_address; |
@@ -414,7 +414,7 @@ static void __devinit dmi_find_cru(const struct dmi_header *dm, void *dummy) | |||
414 | } | 414 | } |
415 | } | 415 | } |
416 | 416 | ||
417 | static int __devinit detect_cru_service(void) | 417 | static int detect_cru_service(void) |
418 | { | 418 | { |
419 | cru_rom_addr = NULL; | 419 | cru_rom_addr = NULL; |
420 | 420 | ||
@@ -647,7 +647,7 @@ static struct miscdevice hpwdt_miscdev = { | |||
647 | 647 | ||
648 | #ifdef CONFIG_HPWDT_NMI_DECODING | 648 | #ifdef CONFIG_HPWDT_NMI_DECODING |
649 | #ifdef CONFIG_X86_LOCAL_APIC | 649 | #ifdef CONFIG_X86_LOCAL_APIC |
650 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | 650 | static void hpwdt_check_nmi_decoding(struct pci_dev *dev) |
651 | { | 651 | { |
652 | /* | 652 | /* |
653 | * If nmi_watchdog is turned off then we can turn on | 653 | * If nmi_watchdog is turned off then we can turn on |
@@ -656,7 +656,7 @@ static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | |||
656 | hpwdt_nmi_decoding = 1; | 656 | hpwdt_nmi_decoding = 1; |
657 | } | 657 | } |
658 | #else | 658 | #else |
659 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | 659 | static void hpwdt_check_nmi_decoding(struct pci_dev *dev) |
660 | { | 660 | { |
661 | dev_warn(&dev->dev, "NMI decoding is disabled. " | 661 | dev_warn(&dev->dev, "NMI decoding is disabled. " |
662 | "Your kernel does not support a NMI Watchdog.\n"); | 662 | "Your kernel does not support a NMI Watchdog.\n"); |
@@ -671,7 +671,7 @@ static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | |||
671 | * This check is independent of architecture and needs to be made for | 671 | * This check is independent of architecture and needs to be made for |
672 | * any ProLiant system. | 672 | * any ProLiant system. |
673 | */ | 673 | */ |
674 | static void __devinit dmi_find_icru(const struct dmi_header *dm, void *dummy) | 674 | static void dmi_find_icru(const struct dmi_header *dm, void *dummy) |
675 | { | 675 | { |
676 | struct smbios_proliant_info *smbios_proliant_ptr; | 676 | struct smbios_proliant_info *smbios_proliant_ptr; |
677 | 677 | ||
@@ -682,7 +682,7 @@ static void __devinit dmi_find_icru(const struct dmi_header *dm, void *dummy) | |||
682 | } | 682 | } |
683 | } | 683 | } |
684 | 684 | ||
685 | static int __devinit hpwdt_init_nmi_decoding(struct pci_dev *dev) | 685 | static int hpwdt_init_nmi_decoding(struct pci_dev *dev) |
686 | { | 686 | { |
687 | int retval; | 687 | int retval; |
688 | 688 | ||
@@ -762,11 +762,11 @@ static void hpwdt_exit_nmi_decoding(void) | |||
762 | iounmap(cru_rom_addr); | 762 | iounmap(cru_rom_addr); |
763 | } | 763 | } |
764 | #else /* !CONFIG_HPWDT_NMI_DECODING */ | 764 | #else /* !CONFIG_HPWDT_NMI_DECODING */ |
765 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | 765 | static void hpwdt_check_nmi_decoding(struct pci_dev *dev) |
766 | { | 766 | { |
767 | } | 767 | } |
768 | 768 | ||
769 | static int __devinit hpwdt_init_nmi_decoding(struct pci_dev *dev) | 769 | static int hpwdt_init_nmi_decoding(struct pci_dev *dev) |
770 | { | 770 | { |
771 | return 0; | 771 | return 0; |
772 | } | 772 | } |
@@ -776,7 +776,7 @@ static void hpwdt_exit_nmi_decoding(void) | |||
776 | } | 776 | } |
777 | #endif /* CONFIG_HPWDT_NMI_DECODING */ | 777 | #endif /* CONFIG_HPWDT_NMI_DECODING */ |
778 | 778 | ||
779 | static int __devinit hpwdt_init_one(struct pci_dev *dev, | 779 | static int hpwdt_init_one(struct pci_dev *dev, |
780 | const struct pci_device_id *ent) | 780 | const struct pci_device_id *ent) |
781 | { | 781 | { |
782 | int retval; | 782 | int retval; |
@@ -848,7 +848,7 @@ error_pci_iomap: | |||
848 | return retval; | 848 | return retval; |
849 | } | 849 | } |
850 | 850 | ||
851 | static void __devexit hpwdt_exit(struct pci_dev *dev) | 851 | static void hpwdt_exit(struct pci_dev *dev) |
852 | { | 852 | { |
853 | if (!nowayout) | 853 | if (!nowayout) |
854 | hpwdt_stop(); | 854 | hpwdt_stop(); |
@@ -863,7 +863,7 @@ static struct pci_driver hpwdt_driver = { | |||
863 | .name = "hpwdt", | 863 | .name = "hpwdt", |
864 | .id_table = hpwdt_devices, | 864 | .id_table = hpwdt_devices, |
865 | .probe = hpwdt_init_one, | 865 | .probe = hpwdt_init_one, |
866 | .remove = __devexit_p(hpwdt_exit), | 866 | .remove = hpwdt_exit, |
867 | }; | 867 | }; |
868 | 868 | ||
869 | MODULE_AUTHOR("Tom Mingarelli"); | 869 | MODULE_AUTHOR("Tom Mingarelli"); |