9
0
Fork 0

usb: ulpi: fix logic-op

Checking register bits is a bitwise operation.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-02-07 09:48:50 +01:00 committed by Sascha Hauer
parent be9758bc17
commit c26a451721
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ int ulpi_read(int reg, void __iomem *view)
int ret;
/* make sure interface is running */
if (!(readl(view) && ULPIVW_SS)) {
if (!(readl(view) & ULPIVW_SS)) {
writel(ULPIVW_WU, view);
/* wait for wakeup */
@ -73,7 +73,7 @@ int ulpi_set(u8 bits, int reg, void __iomem *view)
int ret;
/* make sure the interface is running */
if (!(readl(view) && ULPIVW_SS)) {
if (!(readl(view) & ULPIVW_SS)) {
writel(ULPIVW_WU, view);
/* wait for wakeup */
ret = ulpi_poll(view, ULPIVW_WU);