projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4425070
)
rtc: omap: drop unnecessary register unlock around reads
author
Johan Hovold
<
[email protected]
>
Wed, 4 Jul 2018 09:05:58 +0000
(11:05 +0200)
committer
Alexandre Belloni
<
[email protected]
>
Thu, 12 Jul 2018 18:31:21 +0000
(20:31 +0200)
Drop unnecessary register write-unlock around two read accesses.
Signed-off-by: Johan Hovold <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-omap.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-omap.c
b/drivers/rtc/rtc-omap.c
index 7f9ee559dd996a339b42625c7c470580ec7a8eba..323ff55cc16564833d75ed4b0fa682642ad4fc0f 100644
(file)
--- a/
drivers/rtc/rtc-omap.c
+++ b/
drivers/rtc/rtc-omap.c
@@
-583,9
+583,7
@@
static int rtc_pinconf_get(struct pinctrl_dev *pctldev,
u32 val;
u16 arg = 0;
- rtc->type->unlock(rtc);
val = rtc_readl(rtc, OMAP_RTC_PMIC_REG);
- rtc->type->lock(rtc);
switch (param) {
case PIN_CONFIG_INPUT_ENABLE:
@@
-615,9
+613,7
@@
static int rtc_pinconf_set(struct pinctrl_dev *pctldev,
u32 param_val;
int i;
- rtc->type->unlock(rtc);
val = rtc_readl(rtc, OMAP_RTC_PMIC_REG);
- rtc->type->lock(rtc);
/* active low by default */
val |= OMAP_RTC_PMIC_EXT_WKUP_POL(pin);