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)
committerPeter Rosin <peda@axentia.se>
Mon, 15 May 2017 16:44:58 +0000 (18:44 +0200)
commit68118e0e73aa3a6291c8b9eb1ee708e05f110cea
tree0ecef28ca690016a93e63294d6edf4e540e63bd9
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
i2c: mux: reg: put away the parent i2c adapter on probe failure

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>
drivers/i2c/muxes/i2c-mux-reg.c