Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IA64: drivers: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+42 -68
+1 -1
arch/ia64/include/asm/acpi.h
··· 153 153 #else 154 154 #define MAX_PXM_DOMAINS (256) 155 155 #endif 156 - extern int __devinitdata pxm_to_nid_map[MAX_PXM_DOMAINS]; 156 + extern int pxm_to_nid_map[MAX_PXM_DOMAINS]; 157 157 extern int __initdata nid_to_pxm_map[MAX_NUMNODES]; 158 158 #endif 159 159
+3 -8
arch/ia64/include/asm/iosapic.h
··· 87 87 } 88 88 89 89 extern void __init iosapic_system_init (int pcat_compat); 90 - extern int __devinit iosapic_init (unsigned long address, 91 - unsigned int gsi_base); 92 - #ifdef CONFIG_HOTPLUG 90 + extern int iosapic_init (unsigned long address, unsigned int gsi_base); 93 91 extern int iosapic_remove (unsigned int gsi_base); 94 - #else 95 - #define iosapic_remove(gsi_base) (-EINVAL) 96 - #endif /* CONFIG_HOTPLUG */ 97 92 extern int gsi_to_irq (unsigned int gsi); 98 93 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity, 99 94 unsigned long trigger); 100 95 extern void iosapic_unregister_intr (unsigned int irq); 101 - extern void __devinit iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi, 96 + extern void iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi, 102 97 unsigned long polarity, 103 98 unsigned long trigger); 104 99 extern int __init iosapic_register_platform_intr (u32 int_type, ··· 104 109 unsigned long trigger); 105 110 106 111 #ifdef CONFIG_NUMA 107 - extern void __devinit map_iosapic_to_node (unsigned int, int); 112 + extern void map_iosapic_to_node (unsigned int, int); 108 113 #endif 109 114 #else 110 115 #define iosapic_system_init(pcat_compat) do { } while (0)
+2 -3
arch/ia64/include/asm/parport.h
··· 9 9 #ifndef _ASM_IA64_PARPORT_H 10 10 #define _ASM_IA64_PARPORT_H 1 11 11 12 - static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma); 12 + static int parport_pc_find_isa_ports(int autoirq, int autodma); 13 13 14 - static int __devinit 15 - parport_pc_find_nonpci_ports (int autoirq, int autodma) 14 + static int parport_pc_find_nonpci_ports(int autoirq, int autodma) 16 15 { 17 16 return parport_pc_find_isa_ports(autoirq, autodma); 18 17 }
+1 -1
arch/ia64/include/asm/smp.h
··· 55 55 int cpu_phys_id[NR_CPUS]; 56 56 } smp_boot_data __initdata; 57 57 58 - extern char no_int_routing __devinitdata; 58 + extern char no_int_routing; 59 59 60 60 extern cpumask_t cpu_core_map[NR_CPUS]; 61 61 DECLARE_PER_CPU_SHARED_ALIGNED(cpumask_t, cpu_sibling_map);
+3 -3
arch/ia64/kernel/acpi.c
··· 422 422 #define PXM_FLAG_LEN ((MAX_PXM_DOMAINS + 1)/32) 423 423 424 424 static int __initdata srat_num_cpus; /* number of cpus */ 425 - static u32 __devinitdata pxm_flag[PXM_FLAG_LEN]; 425 + static u32 pxm_flag[PXM_FLAG_LEN]; 426 426 #define pxm_bit_set(bit) (set_bit(bit,(void *)pxm_flag)) 427 427 #define pxm_bit_test(bit) (test_bit(bit,(void *)pxm_flag)) 428 428 static struct acpi_table_slit __initdata *slit_table; ··· 956 956 #endif /* CONFIG_ACPI_HOTPLUG_CPU */ 957 957 958 958 #ifdef CONFIG_ACPI_NUMA 959 - static acpi_status __devinit 960 - acpi_map_iosapic(acpi_handle handle, u32 depth, void *context, void **ret) 959 + static acpi_status acpi_map_iosapic(acpi_handle handle, u32 depth, 960 + void *context, void **ret) 961 961 { 962 962 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; 963 963 union acpi_object *obj;
+6 -13
arch/ia64/kernel/iosapic.c
··· 147 147 unsigned char trigger : 1; /* trigger mode (see iosapic.h) */ 148 148 } iosapic_intr_info[NR_IRQS]; 149 149 150 - static unsigned char pcat_compat __devinitdata; /* 8259 compatibility flag */ 150 + static unsigned char pcat_compat; /* 8259 compatibility flag */ 151 151 152 152 static inline void 153 153 iosapic_write(struct iosapic *iosapic, unsigned int reg, u32 val) ··· 914 914 /* 915 915 * ACPI calls this when it finds an entry for a legacy ISA IRQ override. 916 916 */ 917 - void __devinit 918 - iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi, 919 - unsigned long polarity, 920 - unsigned long trigger) 917 + void iosapic_override_isa_irq(unsigned int isa_irq, unsigned int gsi, 918 + unsigned long polarity, unsigned long trigger) 921 919 { 922 920 int vector, irq; 923 921 unsigned int dest = cpu_physical_id(smp_processor_id()); ··· 1010 1012 return 0; 1011 1013 } 1012 1014 1013 - int __devinit 1014 - iosapic_init (unsigned long phys_addr, unsigned int gsi_base) 1015 + int iosapic_init(unsigned long phys_addr, unsigned int gsi_base) 1015 1016 { 1016 1017 int num_rte, err, index; 1017 1018 unsigned int isa_irq, ver; ··· 1067 1070 return 0; 1068 1071 } 1069 1072 1070 - #ifdef CONFIG_HOTPLUG 1071 - int 1072 - iosapic_remove (unsigned int gsi_base) 1073 + int iosapic_remove(unsigned int gsi_base) 1073 1074 { 1074 1075 int index, err = 0; 1075 1076 unsigned long flags; ··· 1093 1098 spin_unlock_irqrestore(&iosapic_lock, flags); 1094 1099 return err; 1095 1100 } 1096 - #endif /* CONFIG_HOTPLUG */ 1097 1101 1098 1102 #ifdef CONFIG_NUMA 1099 - void __devinit 1100 - map_iosapic_to_node(unsigned int gsi_base, int node) 1103 + void map_iosapic_to_node(unsigned int gsi_base, int node) 1101 1104 { 1102 1105 int index; 1103 1106
+4 -7
arch/ia64/kernel/smpboot.c
··· 347 347 /* 348 348 * Ideally sets up per-cpu profiling hooks. Doesn't do much now... 349 349 */ 350 - static inline void __devinit 351 - smp_setup_percpu_timer (void) 350 + static inline void smp_setup_percpu_timer(void) 352 351 { 353 352 } 354 353 ··· 562 563 } 563 564 } 564 565 565 - void __devinit smp_prepare_boot_cpu(void) 566 + void smp_prepare_boot_cpu(void) 566 567 { 567 568 set_cpu_online(smp_processor_id(), true); 568 569 cpu_set(smp_processor_id(), cpu_callin_map); ··· 712 713 (int)num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100); 713 714 } 714 715 715 - static inline void __devinit 716 - set_cpu_sibling_map(int cpu) 716 + static inline void set_cpu_sibling_map(int cpu) 717 717 { 718 718 int i; 719 719 ··· 791 793 * identify_siblings(cpu) gets called from identify_cpu. This populates the 792 794 * information related to logical execution units in per_cpu_data structure. 793 795 */ 794 - void __devinit 795 - identify_siblings(struct cpuinfo_ia64 *c) 796 + void identify_siblings(struct cpuinfo_ia64 *c) 796 797 { 797 798 long status; 798 799 u16 pltid;
+1 -2
arch/ia64/kernel/time.c
··· 243 243 __setup("nojitter", nojitter_setup); 244 244 245 245 246 - void __devinit 247 - ia64_init_itm (void) 246 + void ia64_init_itm(void) 248 247 { 249 248 unsigned long platform_base_freq, itc_freq; 250 249 struct pal_freq_ratio itc_ratio, proc_ratio;
+2 -3
arch/ia64/mm/init.c
··· 294 294 ia64_patch_gate(); 295 295 } 296 296 297 - void __devinit 298 - ia64_mmu_init (void *my_cpu_data) 297 + void ia64_mmu_init(void *my_cpu_data) 299 298 { 300 299 unsigned long pta, impl_va_bits; 301 - extern void __devinit tlb_init (void); 300 + extern void tlb_init(void); 302 301 303 302 #ifdef CONFIG_DISABLE_VHPT 304 303 # define VHPT_ENABLE_BIT 0
+1 -2
arch/ia64/mm/tlb.c
··· 337 337 } 338 338 EXPORT_SYMBOL(flush_tlb_range); 339 339 340 - void __devinit 341 - ia64_tlb_init (void) 340 + void ia64_tlb_init(void) 342 341 { 343 342 ia64_ptce_info_t uninitialized_var(ptce_info); /* GCC be quiet */ 344 343 u64 tr_pgbits;
+1 -1
arch/ia64/pci/fixup.c
··· 24 24 * video device at this point. 25 25 */ 26 26 27 - static void __devinit pci_fixup_video(struct pci_dev *pdev) 27 + static void pci_fixup_video(struct pci_dev *pdev) 28 28 { 29 29 struct pci_dev *bridge; 30 30 struct pci_bus *bus;
+13 -18
arch/ia64/pci/pci.c
··· 116 116 117 117 /* Called by ACPI when it finds a new root bus. */ 118 118 119 - static struct pci_controller * __devinit 120 - alloc_pci_controller (int seg) 119 + static struct pci_controller *alloc_pci_controller(int seg) 121 120 { 122 121 struct pci_controller *controller; 123 122 ··· 164 165 return i; 165 166 } 166 167 167 - static u64 __devinit 168 - add_io_space (struct pci_root_info *info, struct acpi_resource_address64 *addr) 168 + static u64 add_io_space(struct pci_root_info *info, 169 + struct acpi_resource_address64 *addr) 169 170 { 170 171 struct resource *resource; 171 172 char *name; ··· 225 226 return ~0; 226 227 } 227 228 228 - static acpi_status __devinit resource_to_window(struct acpi_resource *resource, 229 - struct acpi_resource_address64 *addr) 229 + static acpi_status resource_to_window(struct acpi_resource *resource, 230 + struct acpi_resource_address64 *addr) 230 231 { 231 232 acpi_status status; 232 233 ··· 248 249 return AE_ERROR; 249 250 } 250 251 251 - static acpi_status __devinit 252 - count_window (struct acpi_resource *resource, void *data) 252 + static acpi_status count_window(struct acpi_resource *resource, void *data) 253 253 { 254 254 unsigned int *windows = (unsigned int *) data; 255 255 struct acpi_resource_address64 addr; ··· 261 263 return AE_OK; 262 264 } 263 265 264 - static __devinit acpi_status add_window(struct acpi_resource *res, void *data) 266 + static acpi_status add_window(struct acpi_resource *res, void *data) 265 267 { 266 268 struct pci_root_info *info = data; 267 269 struct pci_window *window; ··· 322 324 return AE_OK; 323 325 } 324 326 325 - struct pci_bus * __devinit 326 - pci_acpi_scan_root(struct acpi_pci_root *root) 327 + struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) 327 328 { 328 329 struct acpi_device *device = root->device; 329 330 int domain = root->segment; ··· 393 396 return NULL; 394 397 } 395 398 396 - static int __devinit is_valid_resource(struct pci_dev *dev, int idx) 399 + static int is_valid_resource(struct pci_dev *dev, int idx) 397 400 { 398 401 unsigned int i, type_mask = IORESOURCE_IO | IORESOURCE_MEM; 399 402 struct resource *devr = &dev->resource[idx], *busr; ··· 411 414 return 0; 412 415 } 413 416 414 - static void __devinit 415 - pcibios_fixup_resources(struct pci_dev *dev, int start, int limit) 417 + static void pcibios_fixup_resources(struct pci_dev *dev, int start, int limit) 416 418 { 417 419 int i; 418 420 ··· 423 427 } 424 428 } 425 429 426 - void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) 430 + void pcibios_fixup_device_resources(struct pci_dev *dev) 427 431 { 428 432 pcibios_fixup_resources(dev, 0, PCI_BRIDGE_RESOURCES); 429 433 } 430 434 EXPORT_SYMBOL_GPL(pcibios_fixup_device_resources); 431 435 432 - static void __devinit pcibios_fixup_bridge_resources(struct pci_dev *dev) 436 + static void pcibios_fixup_bridge_resources(struct pci_dev *dev) 433 437 { 434 438 pcibios_fixup_resources(dev, PCI_BRIDGE_RESOURCES, PCI_NUM_RESOURCES); 435 439 } ··· 437 441 /* 438 442 * Called after each bus is probed, but before its children are examined. 439 443 */ 440 - void __devinit 441 - pcibios_fixup_bus (struct pci_bus *b) 444 + void pcibios_fixup_bus(struct pci_bus *b) 442 445 { 443 446 struct pci_dev *dev; 444 447
+1 -2
arch/ia64/sn/kernel/io_common.c
··· 435 435 geo_slot(geoid)); 436 436 } 437 437 438 - void __devinit 439 - sn_pci_fixup_bus(struct pci_bus *bus) 438 + void sn_pci_fixup_bus(struct pci_bus *bus) 440 439 { 441 440 442 441 if (SN_ACPI_BASE_SUPPORT())
+1 -1
arch/ia64/sn/kernel/sn2/sn_hwperf.c
··· 977 977 return e; 978 978 } 979 979 980 - static int __devinit sn_hwperf_misc_register_init(void) 980 + static int sn_hwperf_misc_register_init(void) 981 981 { 982 982 int e; 983 983
+2 -3
arch/ia64/xen/irq_xen.c
··· 273 273 */ 274 274 275 275 #ifdef CONFIG_HOTPLUG_CPU 276 - static int __devinit 277 - unbind_evtchn_callback(struct notifier_block *nfb, 278 - unsigned long action, void *hcpu) 276 + static int unbind_evtchn_callback(struct notifier_block *nfb, 277 + unsigned long action, void *hcpu) 279 278 { 280 279 unsigned int cpu = (unsigned long)hcpu; 281 280