regmap-irq: do not write mask register if mask_base is zero
authorMark Zhang <markz@nvidia.com>
Mon, 14 Jan 2019 09:32:58 +0000 (17:32 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Jan 2019 22:11:22 +0000 (22:11 +0000)
commit7151449fe7fa5962c6153355f9779d6be99e8e97
treed36c632d1584d9c196585c411389158486aade8d
parent1cd824361eed0f3621e32df1be15159c91f137d9
regmap-irq: do not write mask register if mask_base is zero

If client have not provided the mask base register then do not
write into the mask register.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c