]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98ce6df53a0175f17164096b32c8e0e4885475e1
tree0ecef28ca690016a93e63294d6edf4e540e63bd9
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
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: e666e13b91b6 ("i2c: mux: Add register-based mux i2c-mux-reg")
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-reg.c