iio:dac:m62332: shutdown on remove
authorHartmut Knaack <knaack.h@gmx.de>
Fri, 28 Aug 2015 21:59:54 +0000 (23:59 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Oct 2015 14:41:36 +0000 (15:41 +0100)
commit847e3928de0998883219d7052cf4c049c21966e9
tree04b8cb61cd07ee92b4ae2e1f02ba8780d3f5fd1a
parent862a76acb2a033b886880fc70db19f00a036b4aa
iio:dac:m62332: shutdown on remove

The regulator framework requests to balance regulator_enable() calls with
regulator_disable() calls. To meet this requirement, set channels to 0 on
remove, which implies a regulator_disable() call in case that channel was
enabled.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/m62332.c