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

[PATCH] powerpc: Remove sections use from ppc

Here is a new patch that removes all notion of the pmac, prep,
chrp and openfirmware initialization sections, and then unifies
the sections.h files without those __pmac, etc, sections identifiers
cluttering things up.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Jon Loeliger and committed by
Paul Mackerras
f495a8bf 7da8f860

+269 -272
+5 -5
arch/ppc/kernel/pci.c
··· 644 644 /* 645 645 * Functions below are used on OpenFirmware machines. 646 646 */ 647 - static void __openfirmware 647 + static void 648 648 make_one_node_map(struct device_node* node, u8 pci_bus) 649 649 { 650 650 int *bus_range; ··· 678 678 } 679 679 } 680 680 681 - void __openfirmware 681 + void 682 682 pcibios_make_OF_bus_map(void) 683 683 { 684 684 int i; ··· 720 720 721 721 typedef int (*pci_OF_scan_iterator)(struct device_node* node, void* data); 722 722 723 - static struct device_node* __openfirmware 723 + static struct device_node* 724 724 scan_OF_pci_childs(struct device_node* node, pci_OF_scan_iterator filter, void* data) 725 725 { 726 726 struct device_node* sub_node; ··· 761 761 return 0; 762 762 } 763 763 764 - static struct device_node* __openfirmware 764 + static struct device_node* 765 765 scan_OF_childs_for_device(struct device_node* node, u8 bus, u8 dev_fn) 766 766 { 767 767 u8 filter_data[2] = {bus, dev_fn}; ··· 842 842 return NULL; 843 843 } 844 844 845 - static int __openfirmware 845 + static int 846 846 find_OF_pci_device_filter(struct device_node* node, void* data) 847 847 { 848 848 return ((void *)node == data);
+1 -1
arch/ppc/kernel/setup.c
··· 339 339 * Assume here that all clock rates are the same in a 340 340 * smp system. -- Cort 341 341 */ 342 - int __openfirmware 342 + int 343 343 of_show_percpuinfo(struct seq_file *m, int i) 344 344 { 345 345 struct device_node *cpu_node;
+4 -4
arch/ppc/platforms/chrp_pci.c
··· 29 29 * limit the bus number to 3 bits 30 30 */ 31 31 32 - int __chrp gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, 32 + int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, 33 33 int len, u32 *val) 34 34 { 35 35 volatile void __iomem *cfg_data; ··· 56 56 return PCIBIOS_SUCCESSFUL; 57 57 } 58 58 59 - int __chrp gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, 59 + int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, 60 60 int len, u32 val) 61 61 { 62 62 volatile void __iomem *cfg_data; ··· 92 92 /* 93 93 * Access functions for PCI config space using RTAS calls. 94 94 */ 95 - int __chrp 95 + int 96 96 rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 97 97 int len, u32 *val) 98 98 { ··· 108 108 return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; 109 109 } 110 110 111 - int __chrp 111 + int 112 112 rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 113 113 int len, u32 val) 114 114 {
+8 -8
arch/ppc/platforms/chrp_setup.c
··· 105 105 "Disabled", "Write-Through", "Copy-Back", "Transparent Mode" 106 106 }; 107 107 108 - int __chrp 108 + int 109 109 chrp_show_cpuinfo(struct seq_file *m) 110 110 { 111 111 int i, sdramen; ··· 303 303 pci_create_OF_bus_map(); 304 304 } 305 305 306 - void __chrp 306 + void 307 307 chrp_event_scan(void) 308 308 { 309 309 unsigned char log[1024]; ··· 314 314 ppc_md.heartbeat_count = ppc_md.heartbeat_reset; 315 315 } 316 316 317 - void __chrp 317 + void 318 318 chrp_restart(char *cmd) 319 319 { 320 320 printk("RTAS system-reboot returned %d\n", ··· 322 322 for (;;); 323 323 } 324 324 325 - void __chrp 325 + void 326 326 chrp_power_off(void) 327 327 { 328 328 /* allow power on only with power button press */ ··· 331 331 for (;;); 332 332 } 333 333 334 - void __chrp 334 + void 335 335 chrp_halt(void) 336 336 { 337 337 chrp_power_off(); 338 338 } 339 339 340 - u_int __chrp 340 + u_int 341 341 chrp_irq_canonicalize(u_int irq) 342 342 { 343 343 if (irq == 2) ··· 572 572 if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0); 573 573 } 574 574 575 - void __chrp 575 + void 576 576 rtas_display_progress(char *s, unsigned short hex) 577 577 { 578 578 int width; ··· 599 599 call_rtas( "display-character", 1, 1, NULL, ' ' ); 600 600 } 601 601 602 - void __chrp 602 + void 603 603 rtas_indicator_progress(char *s, unsigned short hex) 604 604 { 605 605 call_rtas("set-indicator", 3, 1, NULL, 6, 0, hex);
+1 -1
arch/ppc/platforms/chrp_smp.c
··· 88 88 } 89 89 90 90 /* CHRP with openpic */ 91 - struct smp_ops_t chrp_smp_ops __chrpdata = { 91 + struct smp_ops_t chrp_smp_ops = { 92 92 .message_pass = smp_openpic_message_pass, 93 93 .probe = smp_chrp_probe, 94 94 .kick_cpu = smp_chrp_kick_cpu,
+4 -4
arch/ppc/platforms/chrp_time.c
··· 52 52 return 0; 53 53 } 54 54 55 - int __chrp chrp_cmos_clock_read(int addr) 55 + int chrp_cmos_clock_read(int addr) 56 56 { 57 57 if (nvram_as1 != 0) 58 58 outb(addr>>8, nvram_as1); ··· 60 60 return (inb(nvram_data)); 61 61 } 62 62 63 - void __chrp chrp_cmos_clock_write(unsigned long val, int addr) 63 + void chrp_cmos_clock_write(unsigned long val, int addr) 64 64 { 65 65 if (nvram_as1 != 0) 66 66 outb(addr>>8, nvram_as1); ··· 72 72 /* 73 73 * Set the hardware clock. -- Cort 74 74 */ 75 - int __chrp chrp_set_rtc_time(unsigned long nowtime) 75 + int chrp_set_rtc_time(unsigned long nowtime) 76 76 { 77 77 unsigned char save_control, save_freq_select; 78 78 struct rtc_time tm; ··· 118 118 return 0; 119 119 } 120 120 121 - unsigned long __chrp chrp_get_rtc_time(void) 121 + unsigned long chrp_get_rtc_time(void) 122 122 { 123 123 unsigned int year, mon, day, hour, min, sec; 124 124 int uip, i;
+8 -8
arch/ppc/platforms/pmac_backlight.c
··· 37 37 static void backlight_callback(void *); 38 38 static DECLARE_WORK(backlight_work, backlight_callback, NULL); 39 39 40 - void __pmac register_backlight_controller(struct backlight_controller *ctrler, 40 + void register_backlight_controller(struct backlight_controller *ctrler, 41 41 void *data, char *type) 42 42 { 43 43 struct device_node* bk_node; ··· 99 99 } 100 100 EXPORT_SYMBOL(register_backlight_controller); 101 101 102 - void __pmac unregister_backlight_controller(struct backlight_controller 102 + void unregister_backlight_controller(struct backlight_controller 103 103 *ctrler, void *data) 104 104 { 105 105 /* We keep the current backlight level (for now) */ ··· 108 108 } 109 109 EXPORT_SYMBOL(unregister_backlight_controller); 110 110 111 - static int __pmac __set_backlight_enable(int enable) 111 + static int __set_backlight_enable(int enable) 112 112 { 113 113 int rc; 114 114 ··· 122 122 release_console_sem(); 123 123 return rc; 124 124 } 125 - int __pmac set_backlight_enable(int enable) 125 + int set_backlight_enable(int enable) 126 126 { 127 127 if (!backlighter) 128 128 return -ENODEV; ··· 133 133 134 134 EXPORT_SYMBOL(set_backlight_enable); 135 135 136 - int __pmac get_backlight_enable(void) 136 + int get_backlight_enable(void) 137 137 { 138 138 if (!backlighter) 139 139 return -ENODEV; ··· 141 141 } 142 142 EXPORT_SYMBOL(get_backlight_enable); 143 143 144 - static int __pmac __set_backlight_level(int level) 144 + static int __set_backlight_level(int level) 145 145 { 146 146 int rc = 0; 147 147 ··· 165 165 } 166 166 return rc; 167 167 } 168 - int __pmac set_backlight_level(int level) 168 + int set_backlight_level(int level) 169 169 { 170 170 if (!backlighter) 171 171 return -ENODEV; ··· 176 176 177 177 EXPORT_SYMBOL(set_backlight_level); 178 178 179 - int __pmac get_backlight_level(void) 179 + int get_backlight_level(void) 180 180 { 181 181 if (!backlighter) 182 182 return -ENODEV;
+18 -18
arch/ppc/platforms/pmac_cpufreq.c
··· 136 136 137 137 /* Switch CPU speed under 750FX CPU control 138 138 */ 139 - static int __pmac cpu_750fx_cpu_speed(int low_speed) 139 + static int cpu_750fx_cpu_speed(int low_speed) 140 140 { 141 141 u32 hid2; 142 142 ··· 172 172 return 0; 173 173 } 174 174 175 - static unsigned int __pmac cpu_750fx_get_cpu_speed(void) 175 + static unsigned int cpu_750fx_get_cpu_speed(void) 176 176 { 177 177 if (mfspr(SPRN_HID1) & HID1_PS) 178 178 return low_freq; ··· 181 181 } 182 182 183 183 /* Switch CPU speed using DFS */ 184 - static int __pmac dfs_set_cpu_speed(int low_speed) 184 + static int dfs_set_cpu_speed(int low_speed) 185 185 { 186 186 if (low_speed == 0) { 187 187 /* ramping up, set voltage first */ ··· 205 205 return 0; 206 206 } 207 207 208 - static unsigned int __pmac dfs_get_cpu_speed(void) 208 + static unsigned int dfs_get_cpu_speed(void) 209 209 { 210 210 if (mfspr(SPRN_HID1) & HID1_DFS) 211 211 return low_freq; ··· 216 216 217 217 /* Switch CPU speed using slewing GPIOs 218 218 */ 219 - static int __pmac gpios_set_cpu_speed(int low_speed) 219 + static int gpios_set_cpu_speed(int low_speed) 220 220 { 221 221 int gpio, timeout = 0; 222 222 ··· 258 258 259 259 /* Switch CPU speed under PMU control 260 260 */ 261 - static int __pmac pmu_set_cpu_speed(int low_speed) 261 + static int pmu_set_cpu_speed(int low_speed) 262 262 { 263 263 struct adb_request req; 264 264 unsigned long save_l2cr; ··· 354 354 return 0; 355 355 } 356 356 357 - static int __pmac do_set_cpu_speed(int speed_mode, int notify) 357 + static int do_set_cpu_speed(int speed_mode, int notify) 358 358 { 359 359 struct cpufreq_freqs freqs; 360 360 unsigned long l3cr; ··· 391 391 return 0; 392 392 } 393 393 394 - static unsigned int __pmac pmac_cpufreq_get_speed(unsigned int cpu) 394 + static unsigned int pmac_cpufreq_get_speed(unsigned int cpu) 395 395 { 396 396 return cur_freq; 397 397 } 398 398 399 - static int __pmac pmac_cpufreq_verify(struct cpufreq_policy *policy) 399 + static int pmac_cpufreq_verify(struct cpufreq_policy *policy) 400 400 { 401 401 return cpufreq_frequency_table_verify(policy, pmac_cpu_freqs); 402 402 } 403 403 404 - static int __pmac pmac_cpufreq_target( struct cpufreq_policy *policy, 404 + static int pmac_cpufreq_target( struct cpufreq_policy *policy, 405 405 unsigned int target_freq, 406 406 unsigned int relation) 407 407 { ··· 414 414 return do_set_cpu_speed(newstate, 1); 415 415 } 416 416 417 - unsigned int __pmac pmac_get_one_cpufreq(int i) 417 + unsigned int pmac_get_one_cpufreq(int i) 418 418 { 419 419 /* Supports only one CPU for now */ 420 420 return (i == 0) ? cur_freq : 0; 421 421 } 422 422 423 - static int __pmac pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) 423 + static int pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) 424 424 { 425 425 if (policy->cpu != 0) 426 426 return -ENODEV; ··· 433 433 return cpufreq_frequency_table_cpuinfo(policy, pmac_cpu_freqs); 434 434 } 435 435 436 - static u32 __pmac read_gpio(struct device_node *np) 436 + static u32 read_gpio(struct device_node *np) 437 437 { 438 438 u32 *reg = (u32 *)get_property(np, "reg", NULL); 439 439 u32 offset; ··· 452 452 return offset; 453 453 } 454 454 455 - static int __pmac pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg) 455 + static int pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg) 456 456 { 457 457 /* Ok, this could be made a bit smarter, but let's be robust for now. We 458 458 * always force a speed change to high speed before sleep, to make sure ··· 468 468 return 0; 469 469 } 470 470 471 - static int __pmac pmac_cpufreq_resume(struct cpufreq_policy *policy) 471 + static int pmac_cpufreq_resume(struct cpufreq_policy *policy) 472 472 { 473 473 /* If we resume, first check if we have a get() function */ 474 474 if (get_speed_proc) ··· 501 501 }; 502 502 503 503 504 - static int __pmac pmac_cpufreq_init_MacRISC3(struct device_node *cpunode) 504 + static int pmac_cpufreq_init_MacRISC3(struct device_node *cpunode) 505 505 { 506 506 struct device_node *volt_gpio_np = of_find_node_by_name(NULL, 507 507 "voltage-gpio"); ··· 593 593 return 0; 594 594 } 595 595 596 - static int __pmac pmac_cpufreq_init_7447A(struct device_node *cpunode) 596 + static int pmac_cpufreq_init_7447A(struct device_node *cpunode) 597 597 { 598 598 struct device_node *volt_gpio_np; 599 599 ··· 620 620 return 0; 621 621 } 622 622 623 - static int __pmac pmac_cpufreq_init_750FX(struct device_node *cpunode) 623 + static int pmac_cpufreq_init_750FX(struct device_node *cpunode) 624 624 { 625 625 struct device_node *volt_gpio_np; 626 626 u32 pvr, *value;
+88 -88
arch/ppc/platforms/pmac_feature.c
··· 63 63 * We use a single global lock to protect accesses. Each driver has 64 64 * to take care of its own locking 65 65 */ 66 - static DEFINE_SPINLOCK(feature_lock __pmacdata); 66 + static DEFINE_SPINLOCK(feature_lock); 67 67 68 68 #define LOCK(flags) spin_lock_irqsave(&feature_lock, flags); 69 69 #define UNLOCK(flags) spin_unlock_irqrestore(&feature_lock, flags); ··· 72 72 /* 73 73 * Instance of some macio stuffs 74 74 */ 75 - struct macio_chip macio_chips[MAX_MACIO_CHIPS] __pmacdata; 75 + struct macio_chip macio_chips[MAX_MACIO_CHIPS]; 76 76 77 - struct macio_chip* __pmac macio_find(struct device_node* child, int type) 77 + struct macio_chip* macio_find(struct device_node* child, int type) 78 78 { 79 79 while(child) { 80 80 int i; ··· 89 89 } 90 90 EXPORT_SYMBOL_GPL(macio_find); 91 91 92 - static const char* macio_names[] __pmacdata = 92 + static const char* macio_names[] = 93 93 { 94 94 "Unknown", 95 95 "Grand Central", ··· 116 116 #define UN_BIS(r,v) (UN_OUT((r), UN_IN(r) | (v))) 117 117 #define UN_BIC(r,v) (UN_OUT((r), UN_IN(r) & ~(v))) 118 118 119 - static struct device_node* uninorth_node __pmacdata; 120 - static u32 __iomem * uninorth_base __pmacdata; 121 - static u32 uninorth_rev __pmacdata; 122 - static int uninorth_u3 __pmacdata; 119 + static struct device_node* uninorth_node; 120 + static u32 __iomem * uninorth_base; 121 + static u32 uninorth_rev; 122 + static int uninorth_u3; 123 123 static void __iomem *u3_ht; 124 124 125 125 /* ··· 142 142 struct feature_table_entry* features; 143 143 unsigned long board_flags; 144 144 }; 145 - static struct pmac_mb_def pmac_mb __pmacdata; 145 + static struct pmac_mb_def pmac_mb; 146 146 147 147 /* 148 148 * Here are the chip specific feature functions 149 149 */ 150 150 151 - static inline int __pmac 151 + static inline int 152 152 simple_feature_tweak(struct device_node* node, int type, int reg, u32 mask, int value) 153 153 { 154 154 struct macio_chip* macio; ··· 170 170 171 171 #ifndef CONFIG_POWER4 172 172 173 - static long __pmac 173 + static long 174 174 ohare_htw_scc_enable(struct device_node* node, long param, long value) 175 175 { 176 176 struct macio_chip* macio; ··· 263 263 return 0; 264 264 } 265 265 266 - static long __pmac 266 + static long 267 267 ohare_floppy_enable(struct device_node* node, long param, long value) 268 268 { 269 269 return simple_feature_tweak(node, macio_ohare, 270 270 OHARE_FCR, OH_FLOPPY_ENABLE, value); 271 271 } 272 272 273 - static long __pmac 273 + static long 274 274 ohare_mesh_enable(struct device_node* node, long param, long value) 275 275 { 276 276 return simple_feature_tweak(node, macio_ohare, 277 277 OHARE_FCR, OH_MESH_ENABLE, value); 278 278 } 279 279 280 - static long __pmac 280 + static long 281 281 ohare_ide_enable(struct device_node* node, long param, long value) 282 282 { 283 283 switch(param) { ··· 298 298 } 299 299 } 300 300 301 - static long __pmac 301 + static long 302 302 ohare_ide_reset(struct device_node* node, long param, long value) 303 303 { 304 304 switch(param) { ··· 313 313 } 314 314 } 315 315 316 - static long __pmac 316 + static long 317 317 ohare_sleep_state(struct device_node* node, long param, long value) 318 318 { 319 319 struct macio_chip* macio = &macio_chips[0]; ··· 329 329 return 0; 330 330 } 331 331 332 - static long __pmac 332 + static long 333 333 heathrow_modem_enable(struct device_node* node, long param, long value) 334 334 { 335 335 struct macio_chip* macio; ··· 373 373 return 0; 374 374 } 375 375 376 - static long __pmac 376 + static long 377 377 heathrow_floppy_enable(struct device_node* node, long param, long value) 378 378 { 379 379 return simple_feature_tweak(node, macio_unknown, ··· 382 382 value); 383 383 } 384 384 385 - static long __pmac 385 + static long 386 386 heathrow_mesh_enable(struct device_node* node, long param, long value) 387 387 { 388 388 struct macio_chip* macio; ··· 411 411 return 0; 412 412 } 413 413 414 - static long __pmac 414 + static long 415 415 heathrow_ide_enable(struct device_node* node, long param, long value) 416 416 { 417 417 switch(param) { ··· 426 426 } 427 427 } 428 428 429 - static long __pmac 429 + static long 430 430 heathrow_ide_reset(struct device_node* node, long param, long value) 431 431 { 432 432 switch(param) { ··· 441 441 } 442 442 } 443 443 444 - static long __pmac 444 + static long 445 445 heathrow_bmac_enable(struct device_node* node, long param, long value) 446 446 { 447 447 struct macio_chip* macio; ··· 470 470 return 0; 471 471 } 472 472 473 - static long __pmac 473 + static long 474 474 heathrow_sound_enable(struct device_node* node, long param, long value) 475 475 { 476 476 struct macio_chip* macio; ··· 501 501 return 0; 502 502 } 503 503 504 - static u32 save_fcr[6] __pmacdata; 505 - static u32 save_mbcr __pmacdata; 506 - static u32 save_gpio_levels[2] __pmacdata; 507 - static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT] __pmacdata; 508 - static u8 save_gpio_normal[KEYLARGO_GPIO_CNT] __pmacdata; 509 - static u32 save_unin_clock_ctl __pmacdata; 510 - static struct dbdma_regs save_dbdma[13] __pmacdata; 511 - static struct dbdma_regs save_alt_dbdma[13] __pmacdata; 504 + static u32 save_fcr[6]; 505 + static u32 save_mbcr; 506 + static u32 save_gpio_levels[2]; 507 + static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT]; 508 + static u8 save_gpio_normal[KEYLARGO_GPIO_CNT]; 509 + static u32 save_unin_clock_ctl; 510 + static struct dbdma_regs save_dbdma[13]; 511 + static struct dbdma_regs save_alt_dbdma[13]; 512 512 513 - static void __pmac 513 + static void 514 514 dbdma_save(struct macio_chip* macio, struct dbdma_regs* save) 515 515 { 516 516 int i; ··· 527 527 } 528 528 } 529 529 530 - static void __pmac 530 + static void 531 531 dbdma_restore(struct macio_chip* macio, struct dbdma_regs* save) 532 532 { 533 533 int i; ··· 547 547 } 548 548 } 549 549 550 - static void __pmac 550 + static void 551 551 heathrow_sleep(struct macio_chip* macio, int secondary) 552 552 { 553 553 if (secondary) { ··· 580 580 (void)MACIO_IN32(HEATHROW_FCR); 581 581 } 582 582 583 - static void __pmac 583 + static void 584 584 heathrow_wakeup(struct macio_chip* macio, int secondary) 585 585 { 586 586 if (secondary) { ··· 605 605 } 606 606 } 607 607 608 - static long __pmac 608 + static long 609 609 heathrow_sleep_state(struct device_node* node, long param, long value) 610 610 { 611 611 if ((pmac_mb.board_flags & PMAC_MB_CAN_SLEEP) == 0) ··· 622 622 return 0; 623 623 } 624 624 625 - static long __pmac 625 + static long 626 626 core99_scc_enable(struct device_node* node, long param, long value) 627 627 { 628 628 struct macio_chip* macio; ··· 723 723 return 0; 724 724 } 725 725 726 - static long __pmac 726 + static long 727 727 core99_modem_enable(struct device_node* node, long param, long value) 728 728 { 729 729 struct macio_chip* macio; ··· 775 775 return 0; 776 776 } 777 777 778 - static long __pmac 778 + static long 779 779 pangea_modem_enable(struct device_node* node, long param, long value) 780 780 { 781 781 struct macio_chip* macio; ··· 830 830 return 0; 831 831 } 832 832 833 - static long __pmac 833 + static long 834 834 core99_ata100_enable(struct device_node* node, long value) 835 835 { 836 836 unsigned long flags; ··· 860 860 return 0; 861 861 } 862 862 863 - static long __pmac 863 + static long 864 864 core99_ide_enable(struct device_node* node, long param, long value) 865 865 { 866 866 /* Bus ID 0 to 2 are KeyLargo based IDE, busID 3 is U2 ··· 883 883 } 884 884 } 885 885 886 - static long __pmac 886 + static long 887 887 core99_ide_reset(struct device_node* node, long param, long value) 888 888 { 889 889 switch(param) { ··· 901 901 } 902 902 } 903 903 904 - static long __pmac 904 + static long 905 905 core99_gmac_enable(struct device_node* node, long param, long value) 906 906 { 907 907 unsigned long flags; ··· 918 918 return 0; 919 919 } 920 920 921 - static long __pmac 921 + static long 922 922 core99_gmac_phy_reset(struct device_node* node, long param, long value) 923 923 { 924 924 unsigned long flags; ··· 943 943 return 0; 944 944 } 945 945 946 - static long __pmac 946 + static long 947 947 core99_sound_chip_enable(struct device_node* node, long param, long value) 948 948 { 949 949 struct macio_chip* macio; ··· 973 973 return 0; 974 974 } 975 975 976 - static long __pmac 976 + static long 977 977 core99_airport_enable(struct device_node* node, long param, long value) 978 978 { 979 979 struct macio_chip* macio; ··· 1060 1060 } 1061 1061 1062 1062 #ifdef CONFIG_SMP 1063 - static long __pmac 1063 + static long 1064 1064 core99_reset_cpu(struct device_node* node, long param, long value) 1065 1065 { 1066 1066 unsigned int reset_io = 0; ··· 1104 1104 } 1105 1105 #endif /* CONFIG_SMP */ 1106 1106 1107 - static long __pmac 1107 + static long 1108 1108 core99_usb_enable(struct device_node* node, long param, long value) 1109 1109 { 1110 1110 struct macio_chip* macio; ··· 1257 1257 return 0; 1258 1258 } 1259 1259 1260 - static long __pmac 1260 + static long 1261 1261 core99_firewire_enable(struct device_node* node, long param, long value) 1262 1262 { 1263 1263 unsigned long flags; ··· 1284 1284 return 0; 1285 1285 } 1286 1286 1287 - static long __pmac 1287 + static long 1288 1288 core99_firewire_cable_power(struct device_node* node, long param, long value) 1289 1289 { 1290 1290 unsigned long flags; ··· 1315 1315 return 0; 1316 1316 } 1317 1317 1318 - static long __pmac 1318 + static long 1319 1319 intrepid_aack_delay_enable(struct device_node* node, long param, long value) 1320 1320 { 1321 1321 unsigned long flags; ··· 1336 1336 1337 1337 #endif /* CONFIG_POWER4 */ 1338 1338 1339 - static long __pmac 1339 + static long 1340 1340 core99_read_gpio(struct device_node* node, long param, long value) 1341 1341 { 1342 1342 struct macio_chip* macio = &macio_chips[0]; ··· 1345 1345 } 1346 1346 1347 1347 1348 - static long __pmac 1348 + static long 1349 1349 core99_write_gpio(struct device_node* node, long param, long value) 1350 1350 { 1351 1351 struct macio_chip* macio = &macio_chips[0]; ··· 1356 1356 1357 1357 #ifdef CONFIG_POWER4 1358 1358 1359 - static long __pmac 1359 + static long 1360 1360 g5_gmac_enable(struct device_node* node, long param, long value) 1361 1361 { 1362 1362 struct macio_chip* macio = &macio_chips[0]; ··· 1380 1380 return 0; 1381 1381 } 1382 1382 1383 - static long __pmac 1383 + static long 1384 1384 g5_fw_enable(struct device_node* node, long param, long value) 1385 1385 { 1386 1386 struct macio_chip* macio = &macio_chips[0]; ··· 1403 1403 return 0; 1404 1404 } 1405 1405 1406 - static long __pmac 1406 + static long 1407 1407 g5_mpic_enable(struct device_node* node, long param, long value) 1408 1408 { 1409 1409 unsigned long flags; ··· 1419 1419 } 1420 1420 1421 1421 #ifdef CONFIG_SMP 1422 - static long __pmac 1422 + static long 1423 1423 g5_reset_cpu(struct device_node* node, long param, long value) 1424 1424 { 1425 1425 unsigned int reset_io = 0; ··· 1465 1465 * This takes the second CPU off the bus on dual CPU machines 1466 1466 * running UP 1467 1467 */ 1468 - void __pmac g5_phy_disable_cpu1(void) 1468 + void g5_phy_disable_cpu1(void) 1469 1469 { 1470 1470 UN_OUT(U3_API_PHY_CONFIG_1, 0); 1471 1471 } ··· 1474 1474 1475 1475 #ifndef CONFIG_POWER4 1476 1476 1477 - static void __pmac 1477 + static void 1478 1478 keylargo_shutdown(struct macio_chip* macio, int sleep_mode) 1479 1479 { 1480 1480 u32 temp; ··· 1528 1528 (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); 1529 1529 } 1530 1530 1531 - static void __pmac 1531 + static void 1532 1532 pangea_shutdown(struct macio_chip* macio, int sleep_mode) 1533 1533 { 1534 1534 u32 temp; ··· 1562 1562 (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); 1563 1563 } 1564 1564 1565 - static void __pmac 1565 + static void 1566 1566 intrepid_shutdown(struct macio_chip* macio, int sleep_mode) 1567 1567 { 1568 1568 u32 temp; ··· 1591 1591 } 1592 1592 1593 1593 1594 - void __pmac pmac_tweak_clock_spreading(int enable) 1594 + void pmac_tweak_clock_spreading(int enable) 1595 1595 { 1596 1596 struct macio_chip* macio = &macio_chips[0]; 1597 1597 ··· 1698 1698 } 1699 1699 1700 1700 1701 - static int __pmac 1701 + static int 1702 1702 core99_sleep(void) 1703 1703 { 1704 1704 struct macio_chip* macio; ··· 1791 1791 return 0; 1792 1792 } 1793 1793 1794 - static int __pmac 1794 + static int 1795 1795 core99_wake_up(void) 1796 1796 { 1797 1797 struct macio_chip* macio; ··· 1854 1854 return 0; 1855 1855 } 1856 1856 1857 - static long __pmac 1857 + static long 1858 1858 core99_sleep_state(struct device_node* node, long param, long value) 1859 1859 { 1860 1860 /* Param == 1 means to enter the "fake sleep" mode that is ··· 1884 1884 1885 1885 #endif /* CONFIG_POWER4 */ 1886 1886 1887 - static long __pmac 1887 + static long 1888 1888 generic_dev_can_wake(struct device_node* node, long param, long value) 1889 1889 { 1890 1890 /* Todo: eventually check we are really dealing with on-board ··· 1896 1896 return 0; 1897 1897 } 1898 1898 1899 - static long __pmac 1899 + static long 1900 1900 generic_get_mb_info(struct device_node* node, long param, long value) 1901 1901 { 1902 1902 switch(param) { ··· 1919 1919 1920 1920 /* Used on any machine 1921 1921 */ 1922 - static struct feature_table_entry any_features[] __pmacdata = { 1922 + static struct feature_table_entry any_features[] = { 1923 1923 { PMAC_FTR_GET_MB_INFO, generic_get_mb_info }, 1924 1924 { PMAC_FTR_DEVICE_CAN_WAKE, generic_dev_can_wake }, 1925 1925 { 0, NULL } ··· 1931 1931 * 2400,3400 and 3500 series powerbooks. Some older desktops seem 1932 1932 * to have issues with turning on/off those asic cells 1933 1933 */ 1934 - static struct feature_table_entry ohare_features[] __pmacdata = { 1934 + static struct feature_table_entry ohare_features[] = { 1935 1935 { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, 1936 1936 { PMAC_FTR_SWIM3_ENABLE, ohare_floppy_enable }, 1937 1937 { PMAC_FTR_MESH_ENABLE, ohare_mesh_enable }, ··· 1945 1945 * Separated as some features couldn't be properly tested 1946 1946 * and the serial port control bits appear to confuse it. 1947 1947 */ 1948 - static struct feature_table_entry heathrow_desktop_features[] __pmacdata = { 1948 + static struct feature_table_entry heathrow_desktop_features[] = { 1949 1949 { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, 1950 1950 { PMAC_FTR_MESH_ENABLE, heathrow_mesh_enable }, 1951 1951 { PMAC_FTR_IDE_ENABLE, heathrow_ide_enable }, ··· 1957 1957 /* Heathrow based laptop, that is the Wallstreet and mainstreet 1958 1958 * powerbooks. 1959 1959 */ 1960 - static struct feature_table_entry heathrow_laptop_features[] __pmacdata = { 1960 + static struct feature_table_entry heathrow_laptop_features[] = { 1961 1961 { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, 1962 1962 { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, 1963 1963 { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, ··· 1973 1973 /* Paddington based machines 1974 1974 * The lombard (101) powerbook, first iMac models, B&W G3 and Yikes G4. 1975 1975 */ 1976 - static struct feature_table_entry paddington_features[] __pmacdata = { 1976 + static struct feature_table_entry paddington_features[] = { 1977 1977 { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, 1978 1978 { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, 1979 1979 { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, ··· 1991 1991 * chipset. The pangea chipset is the "combo" UniNorth/KeyLargo 1992 1992 * used on iBook2 & iMac "flow power". 1993 1993 */ 1994 - static struct feature_table_entry core99_features[] __pmacdata = { 1994 + static struct feature_table_entry core99_features[] = { 1995 1995 { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, 1996 1996 { PMAC_FTR_MODEM_ENABLE, core99_modem_enable }, 1997 1997 { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, ··· 2014 2014 2015 2015 /* RackMac 2016 2016 */ 2017 - static struct feature_table_entry rackmac_features[] __pmacdata = { 2017 + static struct feature_table_entry rackmac_features[] = { 2018 2018 { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, 2019 2019 { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, 2020 2020 { PMAC_FTR_IDE_RESET, core99_ide_reset }, ··· 2034 2034 2035 2035 /* Pangea features 2036 2036 */ 2037 - static struct feature_table_entry pangea_features[] __pmacdata = { 2037 + static struct feature_table_entry pangea_features[] = { 2038 2038 { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, 2039 2039 { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, 2040 2040 { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, ··· 2054 2054 2055 2055 /* Intrepid features 2056 2056 */ 2057 - static struct feature_table_entry intrepid_features[] __pmacdata = { 2057 + static struct feature_table_entry intrepid_features[] = { 2058 2058 { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, 2059 2059 { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, 2060 2060 { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, ··· 2077 2077 2078 2078 /* G5 features 2079 2079 */ 2080 - static struct feature_table_entry g5_features[] __pmacdata = { 2080 + static struct feature_table_entry g5_features[] = { 2081 2081 { PMAC_FTR_GMAC_ENABLE, g5_gmac_enable }, 2082 2082 { PMAC_FTR_1394_ENABLE, g5_fw_enable }, 2083 2083 { PMAC_FTR_ENABLE_MPIC, g5_mpic_enable }, ··· 2091 2091 2092 2092 #endif /* CONFIG_POWER4 */ 2093 2093 2094 - static struct pmac_mb_def pmac_mb_defs[] __pmacdata = { 2094 + static struct pmac_mb_def pmac_mb_defs[] = { 2095 2095 #ifndef CONFIG_POWER4 2096 2096 /* 2097 2097 * Desktops ··· 2352 2352 /* 2353 2353 * The toplevel feature_call callback 2354 2354 */ 2355 - long __pmac 2355 + long 2356 2356 pmac_do_feature_call(unsigned int selector, ...) 2357 2357 { 2358 2358 struct device_node* node; ··· 2935 2935 * Early video resume hook 2936 2936 */ 2937 2937 2938 - static void (*pmac_early_vresume_proc)(void *data) __pmacdata; 2939 - static void *pmac_early_vresume_data __pmacdata; 2938 + static void (*pmac_early_vresume_proc)(void *data); 2939 + static void *pmac_early_vresume_data; 2940 2940 2941 2941 void pmac_set_early_video_resume(void (*proc)(void *data), void *data) 2942 2942 { ··· 2949 2949 } 2950 2950 EXPORT_SYMBOL(pmac_set_early_video_resume); 2951 2951 2952 - void __pmac pmac_call_early_video_resume(void) 2952 + void pmac_call_early_video_resume(void) 2953 2953 { 2954 2954 if (pmac_early_vresume_proc) 2955 2955 pmac_early_vresume_proc(pmac_early_vresume_data); ··· 2959 2959 * AGP related suspend/resume code 2960 2960 */ 2961 2961 2962 - static struct pci_dev *pmac_agp_bridge __pmacdata; 2963 - static int (*pmac_agp_suspend)(struct pci_dev *bridge) __pmacdata; 2964 - static int (*pmac_agp_resume)(struct pci_dev *bridge) __pmacdata; 2962 + static struct pci_dev *pmac_agp_bridge; 2963 + static int (*pmac_agp_suspend)(struct pci_dev *bridge); 2964 + static int (*pmac_agp_resume)(struct pci_dev *bridge); 2965 2965 2966 - void __pmac pmac_register_agp_pm(struct pci_dev *bridge, 2966 + void pmac_register_agp_pm(struct pci_dev *bridge, 2967 2967 int (*suspend)(struct pci_dev *bridge), 2968 2968 int (*resume)(struct pci_dev *bridge)) 2969 2969 { ··· 2980 2980 } 2981 2981 EXPORT_SYMBOL(pmac_register_agp_pm); 2982 2982 2983 - void __pmac pmac_suspend_agp_for_card(struct pci_dev *dev) 2983 + void pmac_suspend_agp_for_card(struct pci_dev *dev) 2984 2984 { 2985 2985 if (pmac_agp_bridge == NULL || pmac_agp_suspend == NULL) 2986 2986 return; ··· 2990 2990 } 2991 2991 EXPORT_SYMBOL(pmac_suspend_agp_for_card); 2992 2992 2993 - void __pmac pmac_resume_agp_for_card(struct pci_dev *dev) 2993 + void pmac_resume_agp_for_card(struct pci_dev *dev) 2994 2994 { 2995 2995 if (pmac_agp_bridge == NULL || pmac_agp_resume == NULL) 2996 2996 return;
+21 -21
arch/ppc/platforms/pmac_nvram.c
··· 88 88 static int (*core99_write_bank)(int bank, u8* datas); 89 89 static int (*core99_erase_bank)(int bank); 90 90 91 - static char *nvram_image __pmacdata; 91 + static char *nvram_image; 92 92 93 93 94 - static unsigned char __pmac core99_nvram_read_byte(int addr) 94 + static unsigned char core99_nvram_read_byte(int addr) 95 95 { 96 96 if (nvram_image == NULL) 97 97 return 0xff; 98 98 return nvram_image[addr]; 99 99 } 100 100 101 - static void __pmac core99_nvram_write_byte(int addr, unsigned char val) 101 + static void core99_nvram_write_byte(int addr, unsigned char val) 102 102 { 103 103 if (nvram_image == NULL) 104 104 return; ··· 106 106 } 107 107 108 108 109 - static unsigned char __openfirmware direct_nvram_read_byte(int addr) 109 + static unsigned char direct_nvram_read_byte(int addr) 110 110 { 111 111 return in_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult]); 112 112 } 113 113 114 - static void __openfirmware direct_nvram_write_byte(int addr, unsigned char val) 114 + static void direct_nvram_write_byte(int addr, unsigned char val) 115 115 { 116 116 out_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult], val); 117 117 } 118 118 119 119 120 - static unsigned char __pmac indirect_nvram_read_byte(int addr) 120 + static unsigned char indirect_nvram_read_byte(int addr) 121 121 { 122 122 unsigned char val; 123 123 unsigned long flags; ··· 130 130 return val; 131 131 } 132 132 133 - static void __pmac indirect_nvram_write_byte(int addr, unsigned char val) 133 + static void indirect_nvram_write_byte(int addr, unsigned char val) 134 134 { 135 135 unsigned long flags; 136 136 ··· 143 143 144 144 #ifdef CONFIG_ADB_PMU 145 145 146 - static void __pmac pmu_nvram_complete(struct adb_request *req) 146 + static void pmu_nvram_complete(struct adb_request *req) 147 147 { 148 148 if (req->arg) 149 149 complete((struct completion *)req->arg); 150 150 } 151 151 152 - static unsigned char __pmac pmu_nvram_read_byte(int addr) 152 + static unsigned char pmu_nvram_read_byte(int addr) 153 153 { 154 154 struct adb_request req; 155 155 DECLARE_COMPLETION(req_complete); ··· 165 165 return req.reply[0]; 166 166 } 167 167 168 - static void __pmac pmu_nvram_write_byte(int addr, unsigned char val) 168 + static void pmu_nvram_write_byte(int addr, unsigned char val) 169 169 { 170 170 struct adb_request req; 171 171 DECLARE_COMPLETION(req_complete); ··· 183 183 #endif /* CONFIG_ADB_PMU */ 184 184 185 185 186 - static u8 __pmac chrp_checksum(struct chrp_header* hdr) 186 + static u8 chrp_checksum(struct chrp_header* hdr) 187 187 { 188 188 u8 *ptr; 189 189 u16 sum = hdr->signature; ··· 194 194 return sum; 195 195 } 196 196 197 - static u32 __pmac core99_calc_adler(u8 *buffer) 197 + static u32 core99_calc_adler(u8 *buffer) 198 198 { 199 199 int cnt; 200 200 u32 low, high; ··· 216 216 return (high << 16) | low; 217 217 } 218 218 219 - static u32 __pmac core99_check(u8* datas) 219 + static u32 core99_check(u8* datas) 220 220 { 221 221 struct core99_header* hdr99 = (struct core99_header*)datas; 222 222 ··· 235 235 return hdr99->generation; 236 236 } 237 237 238 - static int __pmac sm_erase_bank(int bank) 238 + static int sm_erase_bank(int bank) 239 239 { 240 240 int stat, i; 241 241 unsigned long timeout; ··· 267 267 return 0; 268 268 } 269 269 270 - static int __pmac sm_write_bank(int bank, u8* datas) 270 + static int sm_write_bank(int bank, u8* datas) 271 271 { 272 272 int i, stat = 0; 273 273 unsigned long timeout; ··· 302 302 return 0; 303 303 } 304 304 305 - static int __pmac amd_erase_bank(int bank) 305 + static int amd_erase_bank(int bank) 306 306 { 307 307 int i, stat = 0; 308 308 unsigned long timeout; ··· 349 349 return 0; 350 350 } 351 351 352 - static int __pmac amd_write_bank(int bank, u8* datas) 352 + static int amd_write_bank(int bank, u8* datas) 353 353 { 354 354 int i, stat = 0; 355 355 unsigned long timeout; ··· 430 430 DBG("nvram: NR partition at 0x%x\n", nvram_partitions[pmac_nvram_NR]); 431 431 } 432 432 433 - static void __pmac core99_nvram_sync(void) 433 + static void core99_nvram_sync(void) 434 434 { 435 435 struct core99_header* hdr99; 436 436 unsigned long flags; ··· 554 554 lookup_partitions(); 555 555 } 556 556 557 - int __pmac pmac_get_partition(int partition) 557 + int pmac_get_partition(int partition) 558 558 { 559 559 return nvram_partitions[partition]; 560 560 } 561 561 562 - u8 __pmac pmac_xpram_read(int xpaddr) 562 + u8 pmac_xpram_read(int xpaddr) 563 563 { 564 564 int offset = nvram_partitions[pmac_nvram_XPRAM]; 565 565 ··· 569 569 return ppc_md.nvram_read_val(xpaddr + offset); 570 570 } 571 571 572 - void __pmac pmac_xpram_write(int xpaddr, u8 data) 572 + void pmac_xpram_write(int xpaddr, u8 data) 573 573 { 574 574 int offset = nvram_partitions[pmac_nvram_XPRAM]; 575 575
+11 -11
arch/ppc/platforms/pmac_pci.c
··· 141 141 |(((unsigned long)(off)) & 0xFCUL) \ 142 142 |1UL) 143 143 144 - static void volatile __iomem * __pmac 144 + static void volatile __iomem * 145 145 macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) 146 146 { 147 147 unsigned int caddr; ··· 162 162 return hose->cfg_data + offset; 163 163 } 164 164 165 - static int __pmac 165 + static int 166 166 macrisc_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 167 167 int len, u32 *val) 168 168 { ··· 190 190 return PCIBIOS_SUCCESSFUL; 191 191 } 192 192 193 - static int __pmac 193 + static int 194 194 macrisc_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 195 195 int len, u32 val) 196 196 { ··· 230 230 /* 231 231 * Verifiy that a specific (bus, dev_fn) exists on chaos 232 232 */ 233 - static int __pmac 233 + static int 234 234 chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) 235 235 { 236 236 struct device_node *np; ··· 252 252 return PCIBIOS_SUCCESSFUL; 253 253 } 254 254 255 - static int __pmac 255 + static int 256 256 chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 257 257 int len, u32 *val) 258 258 { ··· 264 264 return macrisc_read_config(bus, devfn, offset, len, val); 265 265 } 266 266 267 - static int __pmac 267 + static int 268 268 chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 269 269 int len, u32 val) 270 270 { ··· 294 294 + (((unsigned long)bus) << 16) \ 295 295 + 0x01000000UL) 296 296 297 - static void volatile __iomem * __pmac 297 + static void volatile __iomem * 298 298 u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) 299 299 { 300 300 if (bus == hose->first_busno) { ··· 307 307 return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); 308 308 } 309 309 310 - static int __pmac 310 + static int 311 311 u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 312 312 int len, u32 *val) 313 313 { ··· 357 357 return PCIBIOS_SUCCESSFUL; 358 358 } 359 359 360 - static int __pmac 360 + static int 361 361 u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 362 362 int len, u32 val) 363 363 { ··· 899 899 pcibios_fixup_OF_interrupts(); 900 900 } 901 901 902 - int __pmac 902 + int 903 903 pmac_pci_enable_device_hook(struct pci_dev *dev, int initial) 904 904 { 905 905 struct device_node* node; ··· 1096 1096 * Disable second function on K2-SATA, it's broken 1097 1097 * and disable IO BARs on first one 1098 1098 */ 1099 - void __pmac pmac_pci_fixup_k2_sata(struct pci_dev* dev) 1099 + void pmac_pci_fixup_k2_sata(struct pci_dev* dev) 1100 1100 { 1101 1101 int i; 1102 1102 u16 cmd;
+13 -13
arch/ppc/platforms/pmac_pic.c
··· 53 53 }; 54 54 55 55 /* Default addresses */ 56 - static volatile struct pmac_irq_hw *pmac_irq_hw[4] __pmacdata = { 56 + static volatile struct pmac_irq_hw *pmac_irq_hw[4] = { 57 57 (struct pmac_irq_hw *) 0xf3000020, 58 58 (struct pmac_irq_hw *) 0xf3000010, 59 59 (struct pmac_irq_hw *) 0xf4000020, ··· 64 64 #define OHARE_LEVEL_MASK 0x1ff00000 65 65 #define HEATHROW_LEVEL_MASK 0x1ff00000 66 66 67 - static int max_irqs __pmacdata; 68 - static int max_real_irqs __pmacdata; 69 - static u32 level_mask[4] __pmacdata; 67 + static int max_irqs; 68 + static int max_real_irqs; 69 + static u32 level_mask[4]; 70 70 71 - static DEFINE_SPINLOCK(pmac_pic_lock __pmacdata); 71 + static DEFINE_SPINLOCK(pmac_pic_lock); 72 72 73 73 74 74 #define GATWICK_IRQ_POOL_SIZE 10 75 - static struct interrupt_info gatwick_int_pool[GATWICK_IRQ_POOL_SIZE] __pmacdata; 75 + static struct interrupt_info gatwick_int_pool[GATWICK_IRQ_POOL_SIZE]; 76 76 77 77 /* 78 78 * Mark an irq as "lost". This is only used on the pmac 79 79 * since it can lose interrupts (see pmac_set_irq_mask). 80 80 * -- Cort 81 81 */ 82 - void __pmac 82 + void 83 83 __set_lost(unsigned long irq_nr, int nokick) 84 84 { 85 85 if (!test_and_set_bit(irq_nr, ppc_lost_interrupts)) { ··· 89 89 } 90 90 } 91 91 92 - static void __pmac 92 + static void 93 93 pmac_mask_and_ack_irq(unsigned int irq_nr) 94 94 { 95 95 unsigned long bit = 1UL << (irq_nr & 0x1f); ··· 114 114 spin_unlock_irqrestore(&pmac_pic_lock, flags); 115 115 } 116 116 117 - static void __pmac pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) 117 + static void pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) 118 118 { 119 119 unsigned long bit = 1UL << (irq_nr & 0x1f); 120 120 int i = irq_nr >> 5; ··· 147 147 /* When an irq gets requested for the first client, if it's an 148 148 * edge interrupt, we clear any previous one on the controller 149 149 */ 150 - static unsigned int __pmac pmac_startup_irq(unsigned int irq_nr) 150 + static unsigned int pmac_startup_irq(unsigned int irq_nr) 151 151 { 152 152 unsigned long bit = 1UL << (irq_nr & 0x1f); 153 153 int i = irq_nr >> 5; ··· 160 160 return 0; 161 161 } 162 162 163 - static void __pmac pmac_mask_irq(unsigned int irq_nr) 163 + static void pmac_mask_irq(unsigned int irq_nr) 164 164 { 165 165 clear_bit(irq_nr, ppc_cached_irq_mask); 166 166 pmac_set_irq_mask(irq_nr, 0); 167 167 mb(); 168 168 } 169 169 170 - static void __pmac pmac_unmask_irq(unsigned int irq_nr) 170 + static void pmac_unmask_irq(unsigned int irq_nr) 171 171 { 172 172 set_bit(irq_nr, ppc_cached_irq_mask); 173 173 pmac_set_irq_mask(irq_nr, 0); 174 174 } 175 175 176 - static void __pmac pmac_end_irq(unsigned int irq_nr) 176 + static void pmac_end_irq(unsigned int irq_nr) 177 177 { 178 178 if (!(irq_desc[irq_nr].status & (IRQ_DISABLED|IRQ_INPROGRESS)) 179 179 && irq_desc[irq_nr].action) {
+6 -6
arch/ppc/platforms/pmac_setup.c
··· 123 123 extern struct smp_ops_t core99_smp_ops; 124 124 #endif /* CONFIG_SMP */ 125 125 126 - static int __pmac 126 + static int 127 127 pmac_show_cpuinfo(struct seq_file *m) 128 128 { 129 129 struct device_node *np; ··· 227 227 return 0; 228 228 } 229 229 230 - static int __openfirmware 230 + static int 231 231 pmac_show_percpuinfo(struct seq_file *m, int i) 232 232 { 233 233 #ifdef CONFIG_CPU_FREQ_PMAC ··· 486 486 late_initcall(pmac_late_init); 487 487 488 488 /* can't be __init - can be called whenever a disk is first accessed */ 489 - void __pmac 489 + void 490 490 note_bootable_part(dev_t dev, int part, int goodness) 491 491 { 492 492 static int found_boot = 0; ··· 512 512 } 513 513 } 514 514 515 - static void __pmac 515 + static void 516 516 pmac_restart(char *cmd) 517 517 { 518 518 #ifdef CONFIG_ADB_CUDA ··· 537 537 } 538 538 } 539 539 540 - static void __pmac 540 + static void 541 541 pmac_power_off(void) 542 542 { 543 543 #ifdef CONFIG_ADB_CUDA ··· 562 562 } 563 563 } 564 564 565 - static void __pmac 565 + static void 566 566 pmac_halt(void) 567 567 { 568 568 pmac_power_off();
+5 -5
arch/ppc/platforms/pmac_smp.c
··· 186 186 */ 187 187 static unsigned long psurge_smp_message[NR_CPUS]; 188 188 189 - void __pmac psurge_smp_message_recv(struct pt_regs *regs) 189 + void psurge_smp_message_recv(struct pt_regs *regs) 190 190 { 191 191 int cpu = smp_processor_id(); 192 192 int msg; ··· 203 203 smp_message_recv(msg, regs); 204 204 } 205 205 206 - irqreturn_t __pmac psurge_primary_intr(int irq, void *d, struct pt_regs *regs) 206 + irqreturn_t psurge_primary_intr(int irq, void *d, struct pt_regs *regs) 207 207 { 208 208 psurge_smp_message_recv(regs); 209 209 return IRQ_HANDLED; 210 210 } 211 211 212 - static void __pmac smp_psurge_message_pass(int target, int msg, unsigned long data, 212 + static void smp_psurge_message_pass(int target, int msg, unsigned long data, 213 213 int wait) 214 214 { 215 215 int i; ··· 629 629 630 630 631 631 /* PowerSurge-style Macs */ 632 - struct smp_ops_t psurge_smp_ops __pmacdata = { 632 + struct smp_ops_t psurge_smp_ops = { 633 633 .message_pass = smp_psurge_message_pass, 634 634 .probe = smp_psurge_probe, 635 635 .kick_cpu = smp_psurge_kick_cpu, ··· 639 639 }; 640 640 641 641 /* Core99 Macs (dual G4s) */ 642 - struct smp_ops_t core99_smp_ops __pmacdata = { 642 + struct smp_ops_t core99_smp_ops = { 643 643 .message_pass = smp_openpic_message_pass, 644 644 .probe = smp_core99_probe, 645 645 .kick_cpu = smp_core99_kick_cpu,
+4 -4
arch/ppc/platforms/pmac_time.c
··· 77 77 #endif 78 78 } 79 79 80 - unsigned long __pmac 80 + unsigned long 81 81 pmac_get_rtc_time(void) 82 82 { 83 83 #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) ··· 118 118 return 0; 119 119 } 120 120 121 - int __pmac 121 + int 122 122 pmac_set_rtc_time(unsigned long nowtime) 123 123 { 124 124 #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) ··· 210 210 /* 211 211 * Reset the time after a sleep. 212 212 */ 213 - static int __pmac 213 + static int 214 214 time_sleep_notify(struct pmu_sleep_notifier *self, int when) 215 215 { 216 216 static unsigned long time_diff; ··· 235 235 return PBOOK_SLEEP_OK; 236 236 } 237 237 238 - static struct pmu_sleep_notifier time_sleep_notifier __pmacdata = { 238 + static struct pmu_sleep_notifier time_sleep_notifier = { 239 239 time_sleep_notify, SLEEP_LEVEL_MISC, 240 240 }; 241 241 #endif /* CONFIG_PM */
+32 -32
arch/ppc/platforms/prep_pci.c
··· 43 43 /* Tables for known hardware */ 44 44 45 45 /* Motorola PowerStackII - Utah */ 46 - static char Utah_pci_IRQ_map[23] __prepdata = 46 + static char Utah_pci_IRQ_map[23] = 47 47 { 48 48 0, /* Slot 0 - unused */ 49 49 0, /* Slot 1 - unused */ ··· 72 72 0, /* Slot 22 - unused */ 73 73 }; 74 74 75 - static char Utah_pci_IRQ_routes[] __prepdata = 75 + static char Utah_pci_IRQ_routes[] = 76 76 { 77 77 0, /* Line 0 - Unused */ 78 78 9, /* Line 1 */ ··· 84 84 85 85 /* Motorola PowerStackII - Omaha */ 86 86 /* no integrated SCSI or ethernet */ 87 - static char Omaha_pci_IRQ_map[23] __prepdata = 87 + static char Omaha_pci_IRQ_map[23] = 88 88 { 89 89 0, /* Slot 0 - unused */ 90 90 0, /* Slot 1 - unused */ ··· 111 111 0, 112 112 }; 113 113 114 - static char Omaha_pci_IRQ_routes[] __prepdata = 114 + static char Omaha_pci_IRQ_routes[] = 115 115 { 116 116 0, /* Line 0 - Unused */ 117 117 9, /* Line 1 */ ··· 121 121 }; 122 122 123 123 /* Motorola PowerStack */ 124 - static char Blackhawk_pci_IRQ_map[19] __prepdata = 124 + static char Blackhawk_pci_IRQ_map[19] = 125 125 { 126 126 0, /* Slot 0 - unused */ 127 127 0, /* Slot 1 - unused */ ··· 144 144 3, /* Slot P5 */ 145 145 }; 146 146 147 - static char Blackhawk_pci_IRQ_routes[] __prepdata = 147 + static char Blackhawk_pci_IRQ_routes[] = 148 148 { 149 149 0, /* Line 0 - Unused */ 150 150 9, /* Line 1 */ ··· 154 154 }; 155 155 156 156 /* Motorola Mesquite */ 157 - static char Mesquite_pci_IRQ_map[23] __prepdata = 157 + static char Mesquite_pci_IRQ_map[23] = 158 158 { 159 159 0, /* Slot 0 - unused */ 160 160 0, /* Slot 1 - unused */ ··· 182 182 }; 183 183 184 184 /* Motorola Sitka */ 185 - static char Sitka_pci_IRQ_map[21] __prepdata = 185 + static char Sitka_pci_IRQ_map[21] = 186 186 { 187 187 0, /* Slot 0 - unused */ 188 188 0, /* Slot 1 - unused */ ··· 208 208 }; 209 209 210 210 /* Motorola MTX */ 211 - static char MTX_pci_IRQ_map[23] __prepdata = 211 + static char MTX_pci_IRQ_map[23] = 212 212 { 213 213 0, /* Slot 0 - unused */ 214 214 0, /* Slot 1 - unused */ ··· 237 237 238 238 /* Motorola MTX Plus */ 239 239 /* Secondary bus interrupt routing is not supported yet */ 240 - static char MTXplus_pci_IRQ_map[23] __prepdata = 240 + static char MTXplus_pci_IRQ_map[23] = 241 241 { 242 242 0, /* Slot 0 - unused */ 243 243 0, /* Slot 1 - unused */ ··· 264 264 0, /* Slot 22 - unused */ 265 265 }; 266 266 267 - static char Raven_pci_IRQ_routes[] __prepdata = 267 + static char Raven_pci_IRQ_routes[] = 268 268 { 269 269 0, /* This is a dummy structure */ 270 270 }; 271 271 272 272 /* Motorola MVME16xx */ 273 - static char Genesis_pci_IRQ_map[16] __prepdata = 273 + static char Genesis_pci_IRQ_map[16] = 274 274 { 275 275 0, /* Slot 0 - unused */ 276 276 0, /* Slot 1 - unused */ ··· 290 290 0, /* Slot 15 - unused */ 291 291 }; 292 292 293 - static char Genesis_pci_IRQ_routes[] __prepdata = 293 + static char Genesis_pci_IRQ_routes[] = 294 294 { 295 295 0, /* Line 0 - Unused */ 296 296 10, /* Line 1 */ ··· 299 299 15 /* Line 4 */ 300 300 }; 301 301 302 - static char Genesis2_pci_IRQ_map[23] __prepdata = 302 + static char Genesis2_pci_IRQ_map[23] = 303 303 { 304 304 0, /* Slot 0 - unused */ 305 305 0, /* Slot 1 - unused */ ··· 327 327 }; 328 328 329 329 /* Motorola Series-E */ 330 - static char Comet_pci_IRQ_map[23] __prepdata = 330 + static char Comet_pci_IRQ_map[23] = 331 331 { 332 332 0, /* Slot 0 - unused */ 333 333 0, /* Slot 1 - unused */ ··· 354 354 0, 355 355 }; 356 356 357 - static char Comet_pci_IRQ_routes[] __prepdata = 357 + static char Comet_pci_IRQ_routes[] = 358 358 { 359 359 0, /* Line 0 - Unused */ 360 360 10, /* Line 1 */ ··· 364 364 }; 365 365 366 366 /* Motorola Series-EX */ 367 - static char Comet2_pci_IRQ_map[23] __prepdata = 367 + static char Comet2_pci_IRQ_map[23] = 368 368 { 369 369 0, /* Slot 0 - unused */ 370 370 0, /* Slot 1 - unused */ ··· 391 391 0, 392 392 }; 393 393 394 - static char Comet2_pci_IRQ_routes[] __prepdata = 394 + static char Comet2_pci_IRQ_routes[] = 395 395 { 396 396 0, /* Line 0 - Unused */ 397 397 10, /* Line 1 */ ··· 405 405 * This is actually based on the Carolina motherboard 406 406 * -- Cort 407 407 */ 408 - static char ibm8xx_pci_IRQ_map[23] __prepdata = { 408 + static char ibm8xx_pci_IRQ_map[23] = { 409 409 0, /* Slot 0 - unused */ 410 410 0, /* Slot 1 - unused */ 411 411 0, /* Slot 2 - unused */ ··· 431 431 2, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ 432 432 }; 433 433 434 - static char ibm8xx_pci_IRQ_routes[] __prepdata = { 434 + static char ibm8xx_pci_IRQ_routes[] = { 435 435 0, /* Line 0 - unused */ 436 436 15, /* Line 1 */ 437 437 15, /* Line 2 */ ··· 443 443 * a 6015 ibm board 444 444 * -- Cort 445 445 */ 446 - static char ibm6015_pci_IRQ_map[23] __prepdata = { 446 + static char ibm6015_pci_IRQ_map[23] = { 447 447 0, /* Slot 0 - unused */ 448 448 0, /* Slot 1 - unused */ 449 449 0, /* Slot 2 - unused */ ··· 469 469 2, /* Slot 22 - */ 470 470 }; 471 471 472 - static char ibm6015_pci_IRQ_routes[] __prepdata = { 472 + static char ibm6015_pci_IRQ_routes[] = { 473 473 0, /* Line 0 - unused */ 474 474 13, /* Line 1 */ 475 475 15, /* Line 2 */ ··· 479 479 480 480 481 481 /* IBM Nobis and Thinkpad 850 */ 482 - static char Nobis_pci_IRQ_map[23] __prepdata ={ 482 + static char Nobis_pci_IRQ_map[23] ={ 483 483 0, /* Slot 0 - unused */ 484 484 0, /* Slot 1 - unused */ 485 485 0, /* Slot 2 - unused */ ··· 498 498 0, /* Slot 15 - unused */ 499 499 }; 500 500 501 - static char Nobis_pci_IRQ_routes[] __prepdata = { 501 + static char Nobis_pci_IRQ_routes[] = { 502 502 0, /* Line 0 - Unused */ 503 503 13, /* Line 1 */ 504 504 13, /* Line 2 */ ··· 510 510 * IBM RS/6000 43p/140 -- paulus 511 511 * XXX we should get all this from the residual data 512 512 */ 513 - static char ibm43p_pci_IRQ_map[23] __prepdata = { 513 + static char ibm43p_pci_IRQ_map[23] = { 514 514 0, /* Slot 0 - unused */ 515 515 0, /* Slot 1 - unused */ 516 516 0, /* Slot 2 - unused */ ··· 536 536 1, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ 537 537 }; 538 538 539 - static char ibm43p_pci_IRQ_routes[] __prepdata = { 539 + static char ibm43p_pci_IRQ_routes[] = { 540 540 0, /* Line 0 - unused */ 541 541 15, /* Line 1 */ 542 542 15, /* Line 2 */ ··· 559 559 * are routed to OpenPIC inputs 5-8. These values are offset by 560 560 * 16 in the table to reflect the Linux kernel interrupt value. 561 561 */ 562 - struct powerplus_irq_list Powerplus_pci_IRQ_list __prepdata = 562 + struct powerplus_irq_list Powerplus_pci_IRQ_list = 563 563 { 564 564 {25, 26, 27, 28}, 565 565 {21, 22, 23, 24} ··· 572 572 * are routed to OpenPIC inputs 12-15. These values are offset by 573 573 * 16 in the table to reflect the Linux kernel interrupt value. 574 574 */ 575 - struct powerplus_irq_list Mesquite_pci_IRQ_list __prepdata = 575 + struct powerplus_irq_list Mesquite_pci_IRQ_list = 576 576 { 577 577 {24, 25, 26, 27}, 578 578 {28, 29, 30, 31} ··· 582 582 * This table represents the standard PCI swizzle defined in the 583 583 * PCI bus specification. 584 584 */ 585 - static unsigned char prep_pci_intpins[4][4] __prepdata = 585 + static unsigned char prep_pci_intpins[4][4] = 586 586 { 587 587 { 1, 2, 3, 4}, /* Buses 0, 4, 8, ... */ 588 588 { 2, 3, 4, 1}, /* Buses 1, 5, 9, ... */ ··· 622 622 #define MIN_DEVNR 11 623 623 #define MAX_DEVNR 22 624 624 625 - static int __prep 625 + static int 626 626 prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, 627 627 int len, u32 *val) 628 628 { ··· 652 652 return PCIBIOS_SUCCESSFUL; 653 653 } 654 654 655 - static int __prep 655 + static int 656 656 prep_write_config(struct pci_bus *bus, unsigned int devfn, int offset, 657 657 int len, u32 val) 658 658 { ··· 804 804 void (*map_non0_bus)(struct pci_dev *); /* For boards with more than bus 0 devices. */ 805 805 struct powerplus_irq_list *pci_irq_list; /* List of PCI MPIC inputs */ 806 806 unsigned char secondary_bridge_devfn; /* devfn of secondary bus transparent bridge */ 807 - } mot_info[] __prepdata = { 807 + } mot_info[] = { 808 808 {0x300, 0x00, 0x00, "MVME 2400", Genesis2_pci_IRQ_map, Raven_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0xFF}, 809 809 {0x010, 0x00, 0x00, "Genesis", Genesis_pci_IRQ_map, Genesis_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0x00}, 810 810 {0x020, 0x00, 0x00, "Powerstack (Series E)", Comet_pci_IRQ_map, Comet_pci_IRQ_routes, NULL, NULL, 0x00},
+22 -22
arch/ppc/platforms/prep_setup.c
··· 173 173 } 174 174 175 175 /* cpuinfo code common to all IBM PReP */ 176 - static void __prep 176 + static void 177 177 prep_ibm_cpuinfo(struct seq_file *m) 178 178 { 179 179 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); ··· 209 209 } 210 210 } 211 211 212 - static int __prep 212 + static int 213 213 prep_gen_cpuinfo(struct seq_file *m) 214 214 { 215 215 prep_ibm_cpuinfo(m); 216 216 return 0; 217 217 } 218 218 219 - static int __prep 219 + static int 220 220 prep_sandalfoot_cpuinfo(struct seq_file *m) 221 221 { 222 222 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); ··· 243 243 return 0; 244 244 } 245 245 246 - static int __prep 246 + static int 247 247 prep_thinkpad_cpuinfo(struct seq_file *m) 248 248 { 249 249 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); ··· 314 314 return 0; 315 315 } 316 316 317 - static int __prep 317 + static int 318 318 prep_carolina_cpuinfo(struct seq_file *m) 319 319 { 320 320 unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); ··· 350 350 return 0; 351 351 } 352 352 353 - static int __prep 353 + static int 354 354 prep_tiger1_cpuinfo(struct seq_file *m) 355 355 { 356 356 unsigned int l2_reg = inb(PREP_IBM_L2INFO); ··· 393 393 394 394 395 395 /* Used by all Motorola PReP */ 396 - static int __prep 396 + static int 397 397 prep_mot_cpuinfo(struct seq_file *m) 398 398 { 399 399 unsigned int cachew = *((unsigned char *)CACHECRBA); ··· 454 454 return 0; 455 455 } 456 456 457 - static void __prep 457 + static void 458 458 prep_restart(char *cmd) 459 459 { 460 460 #define PREP_SP92 0x92 /* Special Port 92 */ ··· 473 473 #undef PREP_SP92 474 474 } 475 475 476 - static void __prep 476 + static void 477 477 prep_halt(void) 478 478 { 479 479 local_irq_disable(); /* no interrupts */ ··· 488 488 /* Carrera is the power manager in the Thinkpads. Unfortunately not much is 489 489 * known about it, so we can't power down. 490 490 */ 491 - static void __prep 491 + static void 492 492 prep_carrera_poweroff(void) 493 493 { 494 494 prep_halt(); ··· 501 501 * somewhat in the IBM Carolina Technical Specification. 502 502 * -Hollis 503 503 */ 504 - static void __prep 504 + static void 505 505 utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) 506 506 { 507 507 /* ··· 539 539 udelay(100); /* important: let controller recover */ 540 540 } 541 541 542 - static void __prep 542 + static void 543 543 prep_sig750_poweroff(void) 544 544 { 545 545 /* tweak the power manager found in most IBM PRePs (except Thinkpads) */ ··· 554 554 /* not reached */ 555 555 } 556 556 557 - static int __prep 557 + static int 558 558 prep_show_percpuinfo(struct seq_file *m, int i) 559 559 { 560 560 /* PREP's without residual data will give incorrect values here */ ··· 700 700 /* 701 701 * IBM 3-digit status LED 702 702 */ 703 - static unsigned int ibm_statusled_base __prepdata; 703 + static unsigned int ibm_statusled_base; 704 704 705 - static void __prep 705 + static void 706 706 ibm_statusled_progress(char *s, unsigned short hex); 707 707 708 - static int __prep 708 + static int 709 709 ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, 710 710 void * dummy3) 711 711 { ··· 713 713 return NOTIFY_DONE; 714 714 } 715 715 716 - static struct notifier_block ibm_statusled_block __prepdata = { 716 + static struct notifier_block ibm_statusled_block = { 717 717 ibm_statusled_panic, 718 718 NULL, 719 719 INT_MAX /* try to do it first */ 720 720 }; 721 721 722 - static void __prep 722 + static void 723 723 ibm_statusled_progress(char *s, unsigned short hex) 724 724 { 725 725 static int notifier_installed; ··· 945 945 todc_calibrate_decr(); 946 946 } 947 947 948 - static unsigned int __prep 948 + static unsigned int 949 949 prep_irq_canonicalize(u_int irq) 950 950 { 951 951 if (irq == 2) ··· 996 996 /* 997 997 * IDE stuff. 998 998 */ 999 - static int __prep 999 + static int 1000 1000 prep_ide_default_irq(unsigned long base) 1001 1001 { 1002 1002 switch (base) { ··· 1010 1010 } 1011 1011 } 1012 1012 1013 - static unsigned long __prep 1013 + static unsigned long 1014 1014 prep_ide_default_io_base(int index) 1015 1015 { 1016 1016 switch (index) { ··· 1055 1055 do_openpic_setup_cpu(); 1056 1056 } 1057 1057 1058 - static struct smp_ops_t prep_smp_ops __prepdata = { 1058 + static struct smp_ops_t prep_smp_ops = { 1059 1059 smp_openpic_message_pass, 1060 1060 smp_prep_probe, 1061 1061 smp_prep_kick_cpu,
+1 -1
arch/ppc/platforms/residual.c
··· 47 47 #include <asm/ide.h> 48 48 49 49 50 - unsigned char __res[sizeof(RESIDUAL)] __prepdata = {0,}; 50 + unsigned char __res[sizeof(RESIDUAL)] = {0,}; 51 51 RESIDUAL *res = (RESIDUAL *)&__res; 52 52 53 53 char * PnP_BASE_TYPES[] __initdata = {
+3 -3
arch/ppc/syslib/btext.c
··· 53 53 * chrp only uses it during early boot. 54 54 */ 55 55 #ifdef CONFIG_XMON 56 - #define BTEXT __pmac 57 - #define BTDATA __pmacdata 56 + #define BTEXT 57 + #define BTDATA 58 58 #else 59 59 #define BTEXT __init 60 60 #define BTDATA __initdata ··· 187 187 * changes. 188 188 */ 189 189 190 - void __openfirmware 190 + void 191 191 map_boot_text(void) 192 192 { 193 193 unsigned long base, offset, size;
+5 -8
arch/ppc/syslib/prep_nvram.c
··· 22 22 static char nvramData[MAX_PREP_NVRAM]; 23 23 static NVRAM_MAP *nvram=(NVRAM_MAP *)&nvramData[0]; 24 24 25 - unsigned char __prep prep_nvram_read_val(int addr) 25 + unsigned char prep_nvram_read_val(int addr) 26 26 { 27 27 outb(addr, PREP_NVRAM_AS0); 28 28 outb(addr>>8, PREP_NVRAM_AS1); 29 29 return inb(PREP_NVRAM_DATA); 30 30 } 31 31 32 - void __prep prep_nvram_write_val(int addr, 32 + void prep_nvram_write_val(int addr, 33 33 unsigned char val) 34 34 { 35 35 outb(addr, PREP_NVRAM_AS0); ··· 81 81 } 82 82 } 83 83 84 - __prep 85 - char __prep *prep_nvram_get_var(const char *name) 84 + char *prep_nvram_get_var(const char *name) 86 85 { 87 86 char *cp; 88 87 int namelen; ··· 100 101 return NULL; 101 102 } 102 103 103 - __prep 104 - char __prep *prep_nvram_first_var(void) 104 + char *prep_nvram_first_var(void) 105 105 { 106 106 if (nvram->Header.GELength == 0) { 107 107 return NULL; ··· 110 112 } 111 113 } 112 114 113 - __prep 114 - char __prep *prep_nvram_next_var(char *name) 115 + char *prep_nvram_next_var(char *name) 115 116 { 116 117 char *cp; 117 118
+9 -9
arch/ppc/syslib/prom.c
··· 89 89 extern boot_infos_t *boot_infos; 90 90 unsigned long dev_tree_size; 91 91 92 - void __openfirmware 92 + void 93 93 phys_call_rtas(int service, int nargs, int nret, ...) 94 94 { 95 95 va_list list; ··· 862 862 /* 863 863 * Returns all nodes linked together 864 864 */ 865 - struct device_node * __openfirmware 865 + struct device_node * 866 866 find_all_nodes(void) 867 867 { 868 868 struct device_node *head, **prevp, *np; ··· 1165 1165 /* 1166 1166 * Add a property to a node 1167 1167 */ 1168 - void __openfirmware 1168 + void 1169 1169 prom_add_property(struct device_node* np, struct property* prop) 1170 1170 { 1171 1171 struct property **next = &np->properties; ··· 1177 1177 } 1178 1178 1179 1179 /* I quickly hacked that one, check against spec ! */ 1180 - static inline unsigned long __openfirmware 1180 + static inline unsigned long 1181 1181 bus_space_to_resource_flags(unsigned int bus_space) 1182 1182 { 1183 1183 u8 space = (bus_space >> 24) & 0xf; ··· 1194 1194 } 1195 1195 } 1196 1196 1197 - static struct resource* __openfirmware 1197 + static struct resource* 1198 1198 find_parent_pci_resource(struct pci_dev* pdev, struct address_range *range) 1199 1199 { 1200 1200 unsigned long mask; ··· 1224 1224 * or other nodes attached to the root node. Ultimately, put some 1225 1225 * link to resources in the OF node. 1226 1226 */ 1227 - struct resource* __openfirmware 1227 + struct resource* 1228 1228 request_OF_resource(struct device_node* node, int index, const char* name_postfix) 1229 1229 { 1230 1230 struct pci_dev* pcidev; ··· 1280 1280 return NULL; 1281 1281 } 1282 1282 1283 - int __openfirmware 1283 + int 1284 1284 release_OF_resource(struct device_node* node, int index) 1285 1285 { 1286 1286 struct pci_dev* pcidev; ··· 1346 1346 } 1347 1347 1348 1348 #if 0 1349 - void __openfirmware 1349 + void 1350 1350 print_properties(struct device_node *np) 1351 1351 { 1352 1352 struct property *pp; ··· 1400 1400 static DEFINE_SPINLOCK(rtas_lock); 1401 1401 1402 1402 /* this can be called after setup -- Cort */ 1403 - int __openfirmware 1403 + int 1404 1404 call_rtas(const char *service, int nargs, int nret, 1405 1405 unsigned long *outputs, ...) 1406 1406 {