OSDN Git Service

i2c: mux: reg: put away the parent i2c adapter on probe failure
authorPeter Rosin <peda@axentia.se>
Sun, 7 May 2017 05:16:30 +0000 (07:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:47:57 +0000 (19:47 +0200)
commit3743e05f5d4084d0d08a1490118a4996080def87
tree5a9ef489552fc0179116732f9fbd7501f9efe071
parentc53c4ad96242e868da492f424535bf4b45f80503
i2c: mux: reg: put away the parent i2c adapter on probe failure

[ Upstream commit 68118e0e73aa3a6291c8b9eb1ee708e05f110cea ]

It is only prudent to let go of resources that are not used.

Fixes: b3fdd32799d8 ("i2c: mux: Add register-based mux i2c-mux-reg")
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/muxes/i2c-mux-reg.c