Skip to content
Snippets Groups Projects
Commit 81f40345 authored by Andreas Bießmann's avatar Andreas Bießmann Committed by Albert ARIBAUD
Browse files

ehci-atmel: fix compiler warning


Commit 7a101e946cba55e32d3d1265e30456c810046da3 introduced following warning:
---8<---
ehci-atmel.c: In function 'ehci_hcd_init':
ehci-atmel.c:49:2: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
ehci-atmel.c: In function 'ehci_hcd_stop':
ehci-atmel.c:79:2: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
--->8---

This patch fixes it.

Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
cc: Bo Shen <voice.shen@atmel.com>
cc: Marek Vasut <marex@denx.de>
parent e1edd065
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ int ehci_hcd_init(void) ...@@ -46,7 +46,7 @@ int ehci_hcd_init(void)
start_time = get_timer(0); start_time = get_timer(0);
/* Enable UTMI PLL */ /* Enable UTMI PLL */
writel(AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr); writel(AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr);
while (readl(&pmc->sr) & AT91_PMC_LOCKU != AT91_PMC_LOCKU) { while ((readl(&pmc->sr) & AT91_PMC_LOCKU) != AT91_PMC_LOCKU) {
WATCHDOG_RESET(); WATCHDOG_RESET();
tmp_time = get_timer(0); tmp_time = get_timer(0);
if ((tmp_time - start_time) > EN_UPLL_TIMEOUT) { if ((tmp_time - start_time) > EN_UPLL_TIMEOUT) {
...@@ -76,7 +76,7 @@ int ehci_hcd_stop(void) ...@@ -76,7 +76,7 @@ int ehci_hcd_stop(void)
start_time = get_timer(0); start_time = get_timer(0);
/* Disable UTMI PLL */ /* Disable UTMI PLL */
writel(readl(&pmc->uckr) & ~AT91_PMC_UPLLEN, &pmc->uckr); writel(readl(&pmc->uckr) & ~AT91_PMC_UPLLEN, &pmc->uckr);
while (readl(&pmc->sr) & AT91_PMC_LOCKU == AT91_PMC_LOCKU) { while ((readl(&pmc->sr) & AT91_PMC_LOCKU) == AT91_PMC_LOCKU) {
WATCHDOG_RESET(); WATCHDOG_RESET();
tmp_time = get_timer(0); tmp_time = get_timer(0);
if ((tmp_time - start_time) > EN_UPLL_TIMEOUT) { if ((tmp_time - start_time) > EN_UPLL_TIMEOUT) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment