diff options
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
| -rw-r--r-- | drivers/pci/hotplug/ibmphp_hpc.c | 30 | 
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/pci/hotplug/ibmphp_hpc.c b/drivers/pci/hotplug/ibmphp_hpc.c index f59ed30512b..a936022956e 100644 --- a/drivers/pci/hotplug/ibmphp_hpc.c +++ b/drivers/pci/hotplug/ibmphp_hpc.c @@ -258,7 +258,7 @@ static u8 i2c_ctrl_write (struct controller *ctlr_ptr, void __iomem *WPGBbar, u8  {  	u8 rc;  	void __iomem *wpg_addr;	// base addr + offset -	unsigned long wpg_data;	// data to/from WPG LOHI format  +	unsigned long wpg_data;	// data to/from WPG LOHI format  	unsigned long ultemp;  	unsigned long data;	// actual data HILO format  	int i; @@ -351,7 +351,7 @@ static u8 i2c_ctrl_write (struct controller *ctlr_ptr, void __iomem *WPGBbar, u8  }  //------------------------------------------------------------ -//  Read from ISA type HPC  +//  Read from ISA type HPC  //------------------------------------------------------------  static u8 isa_ctrl_read (struct controller *ctlr_ptr, u8 offset)  { @@ -372,7 +372,7 @@ static void isa_ctrl_write (struct controller *ctlr_ptr, u8 offset, u8 data)  {  	u16 start_address;  	u16 port_address; -	 +  	start_address = ctlr_ptr->u.isa_ctlr.io_start;  	port_address = start_address + (u16) offset;  	outb (data, port_address); @@ -533,7 +533,7 @@ static u8 hpc_readcmdtoindex (u8 cmd, u8 index)  *  * Return   0 or error codes  *---------------------------------------------------------------------*/ -int ibmphp_hpc_readslot (struct slot * pslot, u8 cmd, u8 * pstatus) +int ibmphp_hpc_readslot (struct slot *pslot, u8 cmd, u8 *pstatus)  {  	void __iomem *wpg_bbar = NULL;  	struct controller *ctlr_ptr; @@ -656,11 +656,11 @@ int ibmphp_hpc_readslot (struct slot * pslot, u8 cmd, u8 * pstatus)  	//--------------------------------------------------------------------  	// cleanup  	//-------------------------------------------------------------------- -	 +  	// remove physical to logical address mapping  	if ((ctlr_ptr->ctlr_type == 2) || (ctlr_ptr->ctlr_type == 4))  		iounmap (wpg_bbar); -	 +  	free_hpc_access ();  	debug_polling ("%s - Exit rc[%d]\n", __func__, rc); @@ -672,7 +672,7 @@ int ibmphp_hpc_readslot (struct slot * pslot, u8 cmd, u8 * pstatus)  *  * Action: issue a WRITE command to HPC  *---------------------------------------------------------------------*/ -int ibmphp_hpc_writeslot (struct slot * pslot, u8 cmd) +int ibmphp_hpc_writeslot (struct slot *pslot, u8 cmd)  {  	void __iomem *wpg_bbar = NULL;  	struct controller *ctlr_ptr; @@ -835,7 +835,7 @@ static int poll_hpc(void *data)  		down (&semOperations);  		switch (poll_state) { -		case POLL_LATCH_REGISTER:  +		case POLL_LATCH_REGISTER:  			oldlatchlow = curlatchlow;  			ctrl_count = 0x00;  			list_for_each (pslotlist, &ibmphp_slot_head) { @@ -892,16 +892,16 @@ static int poll_hpc(void *data)  			if (kthread_should_stop())  				goto out_sleep; -			 +  			down (&semOperations); -			 +  			if (poll_count >= POLL_LATCH_CNT) {  				poll_count = 0;  				poll_state = POLL_SLOTS;  			} else  				poll_state = POLL_LATCH_REGISTER;  			break; -		}	 +		}  		/* give up the hardware semaphore */  		up (&semOperations);  		/* sleep for a short time just for good measure */ @@ -958,7 +958,7 @@ static int process_changeinstatus (struct slot *pslot, struct slot *poldslot)  	// bit 5 - HPC_SLOT_PWRGD  	if ((pslot->status & 0x20) != (poldslot->status & 0x20))  		// OFF -> ON: ignore, ON -> OFF: disable slot -		if ((poldslot->status & 0x20) && (SLOT_CONNECT (poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT (poldslot->status)))  +		if ((poldslot->status & 0x20) && (SLOT_CONNECT (poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT (poldslot->status)))  			disable = 1;  	// bit 6 - HPC_SLOT_BUS_SPEED @@ -980,7 +980,7 @@ static int process_changeinstatus (struct slot *pslot, struct slot *poldslot)  					pslot->status &= ~HPC_SLOT_POWER;  			}  		} -		// CLOSE -> OPEN  +		// CLOSE -> OPEN  		else if ((SLOT_PWRGD (poldslot->status) == HPC_SLOT_PWRGD_GOOD)  			&& (SLOT_CONNECT (poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT (poldslot->status))) {  			disable = 1; @@ -1075,7 +1075,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void)  	debug ("before locking operations \n");  	ibmphp_lock_operations ();  	debug ("after locking operations \n"); -	 +  	// wait for poll thread to exit  	debug ("before sem_exit down \n");  	down (&sem_exit); @@ -1102,7 +1102,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void)  * Value:  *---------------------------------------------------------------------*/  static int hpc_wait_ctlr_notworking (int timeout, struct controller *ctlr_ptr, void __iomem *wpg_bbar, -				    u8 * pstatus) +				    u8 *pstatus)  {  	int rc = 0;  	u8 done = 0;  | 
