drivers: usb: early: clean up indentation, remove extraneous tabs
There is a hunk of code that is indented too much by one level, fix this by removing the extraneous tabs. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
18557feccf
commit
f4b614adbf
|
@ -631,28 +631,28 @@ static int ehci_reset_port(int port)
|
||||||
if (!(portsc & PORT_RESET))
|
if (!(portsc & PORT_RESET))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (portsc & PORT_RESET) {
|
if (portsc & PORT_RESET) {
|
||||||
/* force reset to complete */
|
/* force reset to complete */
|
||||||
loop = 100 * 1000;
|
loop = 100 * 1000;
|
||||||
writel(portsc & ~(PORT_RWC_BITS | PORT_RESET),
|
writel(portsc & ~(PORT_RWC_BITS | PORT_RESET),
|
||||||
&ehci_regs->port_status[port - 1]);
|
&ehci_regs->port_status[port - 1]);
|
||||||
do {
|
do {
|
||||||
udelay(1);
|
udelay(1);
|
||||||
portsc = readl(&ehci_regs->port_status[port-1]);
|
portsc = readl(&ehci_regs->port_status[port-1]);
|
||||||
} while ((portsc & PORT_RESET) && (--loop > 0));
|
} while ((portsc & PORT_RESET) && (--loop > 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Device went away? */
|
/* Device went away? */
|
||||||
if (!(portsc & PORT_CONNECT))
|
if (!(portsc & PORT_CONNECT))
|
||||||
return -ENOTCONN;
|
return -ENOTCONN;
|
||||||
|
|
||||||
/* bomb out completely if something weird happened */
|
/* bomb out completely if something weird happened */
|
||||||
if ((portsc & PORT_CSC))
|
if ((portsc & PORT_CSC))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* If we've finished resetting, then break out of the loop */
|
/* If we've finished resetting, then break out of the loop */
|
||||||
if (!(portsc & PORT_RESET) && (portsc & PORT_PE))
|
if (!(portsc & PORT_RESET) && (portsc & PORT_PE))
|
||||||
return 0;
|
return 0;
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue