aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2014-03-06 10:31:15 +0100
committerLinus Walleij <[email protected]>2014-03-12 14:48:13 +0100
commitc75793d8ab743acdd07120cf11c0242daea8f780 (patch)
treee8156d955633a2b6c5115a9c4195028479c10f9c /lib/mpi/mpi-cmp.c
parent49e1f91cd581acec0ef30ac2860fcdd5e51a6d05 (diff)
gpio: max732x: Fix I2C dummy device resource leak on probe failure
In max732x_probe() driver allocates dummy I2C device (if number of ports is greater than 8) however it is not unregistered if probe fails later. Fix the leak by unregistering dummy I2C device if it was allocated. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions