diff options
Diffstat (limited to 'arch/parisc/kernel/firmware.c')
| -rw-r--r-- | arch/parisc/kernel/firmware.c | 28 | 
1 files changed, 9 insertions, 19 deletions
diff --git a/arch/parisc/kernel/firmware.c b/arch/parisc/kernel/firmware.c index df971fa0c32..22395901d47 100644 --- a/arch/parisc/kernel/firmware.c +++ b/arch/parisc/kernel/firmware.c @@ -67,7 +67,6 @@  #include <asm/page.h>  #include <asm/pdc.h>  #include <asm/pdcpat.h> -#include <asm/system.h>  #include <asm/processor.h>	/* for boot_cpu_data */  static DEFINE_SPINLOCK(pdc_lock); @@ -151,7 +150,7 @@ static void convert_to_wide(unsigned long *addr)  }  #ifdef CONFIG_64BIT -void __cpuinit set_firmware_width_unlocked(void) +void set_firmware_width_unlocked(void)  {  	int ret; @@ -168,7 +167,7 @@ void __cpuinit set_firmware_width_unlocked(void)   * This function must be called before any pdc_* function that uses the   * convert_to_wide function.   */ -void __cpuinit set_firmware_width(void) +void set_firmware_width(void)  {  	unsigned long flags;  	spin_lock_irqsave(&pdc_lock, flags); @@ -176,11 +175,13 @@ void __cpuinit set_firmware_width(void)  	spin_unlock_irqrestore(&pdc_lock, flags);  }  #else -void __cpuinit set_firmware_width_unlocked(void) { +void set_firmware_width_unlocked(void) +{  	return;  } -void __cpuinit set_firmware_width(void) { +void set_firmware_width(void) +{  	return;  }  #endif /*CONFIG_64BIT*/ @@ -302,7 +303,7 @@ int pdc_chassis_warn(unsigned long *warn)  	return retval;  } -int __cpuinit pdc_coproc_cfg_unlocked(struct pdc_coproc_cfg *pdc_coproc_info) +int pdc_coproc_cfg_unlocked(struct pdc_coproc_cfg *pdc_coproc_info)  {  	int ret; @@ -323,7 +324,7 @@ int __cpuinit pdc_coproc_cfg_unlocked(struct pdc_coproc_cfg *pdc_coproc_info)   * This PDC call returns the presence and status of all the coprocessors   * attached to the processor.   */ -int __cpuinit pdc_coproc_cfg(struct pdc_coproc_cfg *pdc_coproc_info) +int pdc_coproc_cfg(struct pdc_coproc_cfg *pdc_coproc_info)  {  	int ret;  	unsigned long flags; @@ -1126,15 +1127,13 @@ int pdc_iodc_print(const unsigned char *str, unsigned count)  	unsigned int i;  	unsigned long flags; -	for (i = 0; i < count && i < 79;) { +	for (i = 0; i < count;) {  		switch(str[i]) {  		case '\n':  			iodc_dbuf[i+0] = '\r';  			iodc_dbuf[i+1] = '\n';  			i += 2;  			goto print; -		case '\b':	/* BS */ -			i--; /* overwrite last */  		default:  			iodc_dbuf[i] = str[i];  			i++; @@ -1142,15 +1141,6 @@ int pdc_iodc_print(const unsigned char *str, unsigned count)  		}  	} -	/* if we're at the end of line, and not already inserting a newline, -	 * insert one anyway. iodc console doesn't claim to support >79 char -	 * lines. don't account for this in the return value. -	 */ -	if (i == 79 && iodc_dbuf[i-1] != '\n') { -		iodc_dbuf[i+0] = '\r'; -		iodc_dbuf[i+1] = '\n'; -	} -  print:          spin_lock_irqsave(&pdc_lock, flags);          real32_call(PAGE0->mem_cons.iodc_io,  | 
