regmap: regmap-irq: fix getting type default values
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 28 Mar 2019 16:22:18 +0000 (16:22 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:11:41 +0000 (15:11 +0700)
commit8293488205f145aeefbec76f231303c8e32647a2
tree4a7925c5a5bf593a6c381d856c75d888f0430626
parent435bba0f11f06789be59757719c161915e92f889
regmap: regmap-irq: fix getting type default values

Checking for value of type default value just after allocating will
always be zero and the type register default values will never be read,
so fix this!

Without this patch setting irq type will be silently ignored.
Patch "regmap: regmap-irq: Remove default irq type setting from core"
did remove the default mask but it forgot to remove the check before
reading the default type register.

Fixes: 84267d1b18ab ("regmap: regmap-irq: Remove default irq type setting from core")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c