diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2011-12-12 12:08:33 +0200 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-12-16 21:03:37 +0100 |
commit | 4256101f8ca908438ddbb5bd649274dbfd936f22 (patch) | |
tree | e5b0f8d168ee0f999f9ea06042b08c75cec6d5e6 /drivers/usb/ulpi/ulpi.c | |
parent | 1113a79b2a31a9051b3a1afd3edbbdf013f88833 (diff) | |
download | u-boot-imx-4256101f8ca908438ddbb5bd649274dbfd936f22.zip u-boot-imx-4256101f8ca908438ddbb5bd649274dbfd936f22.tar.gz u-boot-imx-4256101f8ca908438ddbb5bd649274dbfd936f22.tar.bz2 |
USB: ULPI: clean a mixup of return types
Clean a mixup between u32 and int as a return type
for functions returning error values.
Use int as it is native (and widely used) return type.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/ulpi/ulpi.c')
-rw-r--r-- | drivers/usb/ulpi/ulpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index 1371aa6..f3f293f 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -39,8 +39,8 @@ static struct ulpi_regs *ulpi = (struct ulpi_regs *)0; static int ulpi_integrity_check(u32 ulpi_viewport) { - u32 err, val, tval = ULPI_TEST_VALUE; - int i; + u32 val, tval = ULPI_TEST_VALUE; + int err, i; /* Use the 'special' test value to check all bits */ for (i = 0; i < 2; i++, tval <<= 1) { @@ -171,7 +171,7 @@ int ulpi_serial_mode_enable(u32 ulpi_viewport, unsigned smode) int ulpi_suspend(u32 ulpi_viewport) { - u32 err; + int err; err = ulpi_write(ulpi_viewport, &ulpi->function_ctrl_clear, ULPI_FC_SUSPENDM); @@ -214,7 +214,7 @@ int ulpi_reset_wait(u32) __attribute__((weak, alias("__ulpi_reset_wait"))); int ulpi_reset(u32 ulpi_viewport) { - u32 err; + int err; err = ulpi_write(ulpi_viewport, &ulpi->function_ctrl_set, ULPI_FC_RESET); |