]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: ltc3589: Make IRQ optional
authorBernhard Walle <bernhard@bwalle.de>
Wed, 10 Feb 2016 20:37:30 +0000 (21:37 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 12 Feb 2016 22:35:00 +0000 (22:35 +0000)
commitb3d1d3febad1dfec5daeafde4fc4c004140f832c
tree1dd14a3a118d8549154e3e2d8ed37a6f53210347
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
regulator: ltc3589: Make IRQ optional

It's perfectly valid to use the LTC3589 without an interrupt pin
connected to it. Currently, the driver probing fails when client->irq
is 0 (which means "no interrupt"). Don't register the interrupt
handler in that case but successfully finish the device probing instead.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c