diff options
author | Bo Shen <voice.shen@atmel.com> | 2013-02-20 13:27:17 +0800 |
---|---|---|
committer | Bo Shen <voice.shen@atmel.com> | 2013-02-20 13:28:24 +0800 |
commit | fcb301e3ded730829ab74cd6d24ad87e0dcb26da (patch) | |
tree | 4c2ec2c9c1a579f393efd906e8ae6fd57431ac83 | |
parent | bef4fde506d445964e9654f8c55f86bc0cedee7f (diff) |
usb: ohci-at91: fix building warning
warning: left shift count >= width of type
Signed-off-by: Bo Shen <voice.shen@atmel.com>
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index e2af1b6da5..9124b874eb 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -74,7 +74,11 @@ int usb_cpu_stop(void) at91_pmc_t *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; /* Disable USB host clock. */ +#if defined(CONFIG_SAMA5D3) + writel(1 << (ATMEL_ID_UHP - 32), &pmc->pcdr1); +#else writel(1 << ATMEL_ID_UHP, &pmc->pcdr); +#endif #ifdef CONFIG_AT91SAM9261 writel(ATMEL_PMC_UHP | AT91_PMC_HCK0, &pmc->scdr); #else |