i2c: pca954x: Use devm_kzalloc managed allocator
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 29 Nov 2013 00:51:23 +0000 (01:51 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 3 Jan 2014 16:40:20 +0000 (17:40 +0100)
commitbc12cfc87f1028d1b22ad97e3b7be8914d253c48
tree07bce6403d70c5695c7c985a2230c7e16901ab82
parent4b9b00734b0ae64f49753e246e9c754009e08278
i2c: pca954x: Use devm_kzalloc managed allocator

This simplifies error and removal paths.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-mux-pca954x.c