diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-19 13:21:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 15:00:24 -0500 |
commit | 2d991a164a61858012651e13c59521975504e260 (patch) | |
tree | c5f8dffa81d1f4fea34c108ca41f7290187cd64f /drivers/watchdog/hpwdt.c | |
parent | 82268714bdf06bc06135efb707a9de590ab2d294 (diff) |
watchdog: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/watchdog/hpwdt.c')
-rw-r--r-- | drivers/watchdog/hpwdt.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 03687bcc74f2..cc25ddfa84eb 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; |