mfd: atmel-hlcdc: Do not sleep in atomic context
[deliverable/linux.git] / drivers / mfd / atmel-hlcdc.c
index eca7ea69b81c8c16085f98a803da511589599b37..4b15b0840f16991e942e0f98aca16e463cbac887 100644 (file)
@@ -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);
This page took 0.026558 seconds and 5 git commands to generate.