summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/mfd/atmel-hlcdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/mfd/atmel-hlcdc.c')
-rw-r--r--kernel/drivers/mfd/atmel-hlcdc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/drivers/mfd/atmel-hlcdc.c b/kernel/drivers/mfd/atmel-hlcdc.c
index 06c205868..c216c3a55 100644
--- a/kernel/drivers/mfd/atmel-hlcdc.c
+++ b/kernel/drivers/mfd/atmel-hlcdc.c
@@ -50,8 +50,9 @@ static int regmap_atmel_hlcdc_reg_write(void *context, unsigned int reg,
if (reg <= ATMEL_HLCDC_DIS) {
u32 status;
- readl_poll_timeout(hregmap->regs + ATMEL_HLCDC_SR, status,
- !(status & ATMEL_HLCDC_SIP), 1, 100);
+ readl_poll_timeout_atomic(hregmap->regs + ATMEL_HLCDC_SR,
+ status, !(status & ATMEL_HLCDC_SIP),
+ 1, 100);
}
writel(val, hregmap->regs + reg);