summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorMichael Trimarchi <michael@amarulasolutions.com>2018-03-29 17:52:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-29 12:03:01 +0200
commit274a1874bd7966eeb80b1a217b4e627e45c5fc73 (patch)
tree573450c19e649e9bf5a6e0ee5607cafcffed4407 /drivers/usb
parent26250d540d2baf32e265e9e6df120b9be5962587 (diff)
downloadblackbird-op-linux-274a1874bd7966eeb80b1a217b4e627e45c5fc73.tar.gz
blackbird-op-linux-274a1874bd7966eeb80b1a217b4e627e45c5fc73.zip
usb: chipidea: usbmisc: small clean up
The register write can be done outside the if and else condition Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/chipidea/usbmisc_imx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index 1f47ef625069..34ad5bf8acd8 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -315,13 +315,12 @@ static int usbmisc_imx6q_set_wakeup
val = readl(usbmisc->base + data->index * 4);
if (enabled) {
val |= wakeup_setting;
- writel(val, usbmisc->base + data->index * 4);
} else {
if (val & MX6_BM_WAKEUP_INTR)
pr_debug("wakeup int at ci_hdrc.%d\n", data->index);
val &= ~wakeup_setting;
- writel(val, usbmisc->base + data->index * 4);
}
+ writel(val, usbmisc->base + data->index * 4);
spin_unlock_irqrestore(&usbmisc->lock, flags);
return ret;
OpenPOWER on IntegriCloud