]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-mux-gpio: Use devm_kzalloc instead of kzalloc
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 7 Oct 2012 22:26:15 +0000 (09:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 7 Oct 2012 22:26:15 +0000 (09:26 +1100)
commited049f41f3f4565589d63dc0ee8c743c1657743f
tree1ce29ac92b87c5cb5b940423db2da2f0ba709b2b
parentd1deb8fdcf055d9e402168b915d06cc38febed59
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