Re: [PATCH resend v2] mux: core: Fix double get_device()

2017-12-04 Thread Peter Rosin
On 2017-11-28 10:05, Hans de Goede wrote: > class_find_device already does a get_device on the returned device. > So the device returned by of_find_mux_chip_by_node is already referenced > and we should not reference it again (and unref it on error). > > Also rename of_find_mux_chip_by_node to of_

[PATCH resend v2] mux: core: Fix double get_device()

2017-11-28 Thread Hans de Goede
class_find_device already does a get_device on the returned device. So the device returned by of_find_mux_chip_by_node is already referenced and we should not reference it again (and unref it on error). Also rename of_find_mux_chip_by_node to of_get_mux_chip_by_node to make it clear that it return