sh-pfc: Use devm_kzalloc()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Dec 2012 22:50:48 +0000 (23:50 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:24:21 +0000 (09:24 +0900)
commit1724acfd598bdf688218bdd26a5f02dd55b6ec62
treede92bd2a54456da3df5bc9a4f082f025447fe4fa
parentc6193eacda6d50c405b0d484f5f2577ff9068a13
sh-pfc: Use devm_kzalloc()

Replace probe-time kmalloc()/kzalloc() calls with devm_kzalloc() and get
rid of the corresponding kfree() calls.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/sh/pfc/core.c
drivers/sh/pfc/gpio.c
drivers/sh/pfc/pinctrl.c