i2c-mux-gpio: Use devm_kzalloc instead of kzalloc
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 5 Oct 2012 20:23:53 +0000 (22:23 +0200)
committerJean Delvare <khali@endymion.delvare>
Fri, 5 Oct 2012 20:23:53 +0000 (22:23 +0200)
commit2614a8594152cad49047ed02255a3d9fbbbea8dd
tree1ce29ac92b87c5cb5b940423db2da2f0ba709b2b
parent3ad7ea18ae8c7ddda46b7276e0bda73e707ea9c1
i2c-mux-gpio: Use devm_kzalloc instead of kzalloc

Use the devm_kzalloc managed function to stripdown the error and remove
code.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/muxes/i2c-mux-gpio.c