max8925_power: No temperature interrupts if temperature not connected
authorPhilip Rakity <prakity@marvell.com>
Fri, 25 Nov 2011 19:19:37 +0000 (23:19 +0400)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 25 Nov 2011 19:19:37 +0000 (23:19 +0400)
commit92de378b739115c8afaae5cd3f25159406bb9914
treeebb4e6314d72c0d48ef6a6e957120d29ae52c593
parent9c9cf9e26363d0c06d0e01d5304477be97ace5cb
max8925_power: No temperature interrupts if temperature not connected

Brownstone does not have temperature reading circuit hooked up.
This leads to spurious interrupts.

Allow the platform layer to indicate no temperature circuit
and do not activate interrupts if no temperature control is set

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/max8925_power.c
include/linux/mfd/max8925.h