arm/tegra: pcie: fix return value of function
authorDmitry Artamonow <mad_soft@inbox.ru>
Tue, 13 Mar 2012 05:46:27 +0000 (09:46 +0400)
committerOlof Johansson <olof@lixom.net>
Sun, 18 Mar 2012 17:26:48 +0000 (10:26 -0700)
commit2f926eecdfb6138fef91683667fc915af5071fff
tree198b1187e300c825319153dc288aa6eda538f822
parent795d5fd4b8b06944976c95e8592e17e2d415aa81
arm/tegra: pcie: fix return value of function

In previous patch (arm/tegra: add timeout to PCIe PLL lock detection loop)
tegra_pcie_enable_controller() function type has been changed from
void to int, but the last return statement wasn't converted, so
function returns undefined value. Fix it.

Also while at it, address couple of minor concerns raised by reviewers:
use usleep_range for delay, and lower the value of timeout to 300ms
to be consistent with Nvidia Vibrante kernel.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/pcie.c