thermal: max77620: fix pinmux conflict on reprobe
authorJohan Hovold <johan@kernel.org>
Tue, 6 Jun 2017 15:59:04 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 09:07:32 +0000 (11:07 +0200)
commitce046e5d9b489554c29ae9277cdc2f86dee76a84
treefad95ebba112a8521d1752957b8cc2a1fc3ace7a
parentc592fafbdbb6b1279b76a54722d1465ca77e5bde
thermal: max77620: fix pinmux conflict on reprobe

Use the new helper for reusing a device-tree node of another device
instead of managing the node references explicitly.

This also makes sure that the new of_node_reuse flag is set if the
device is ever reprobed, something which specifically now avoids driver
core from attempting to claim any pinmux resources already claimed by
the parent device.

Fixes: ec4664b3fd6d ("thermal: max77620: Add thermal driver for reporting junction temp")
Cc: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/max77620_thermal.c