Fix warning on x86_64, make allyesconfig:

drivers/mfd/max77693.c: In function ‘max77693_i2c_probe’:
drivers/mfd/max77693.c:259:5: warning: large integer implicitly truncated to 
unsigned type [-Woverflow]
     SRC_IRQ_ALL, ~SRC_IRQ_ALL);
     ^

Signed-off-by: Krzysztof Kozlowski <k.kozlow...@samsung.com>
---
 drivers/mfd/max77693.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
index 4e4e6a1a6301..0c9ec6bae022 100644
--- a/drivers/mfd/max77693.c
+++ b/drivers/mfd/max77693.c
@@ -256,7 +256,7 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
        /* Unmask interrupts from all blocks in interrupt source register */
        ret = regmap_update_bits(max77693->regmap,
                                MAX77693_PMIC_REG_INTSRC_MASK,
-                               SRC_IRQ_ALL, ~SRC_IRQ_ALL);
+                               SRC_IRQ_ALL, (unsigned int)~SRC_IRQ_ALL);
        if (ret < 0) {
                dev_err(max77693->dev,
                        "Could not unmask interrupts in INTSRC: %d\n",
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to