gpio: dwapb_gpio: Change to use devm_kcalloc()
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 19 Sep 2018 08:26:33 +0000 (16:26 +0800)
committerMarek Vasut <marex@denx.de>
Wed, 3 Oct 2018 10:56:50 +0000 (12:56 +0200)
commit86d56a5da5b2d50879c1ea955c8e1eed5d27fa7d
treeb6f0e5e53aacb0b92fd90e9a374f5ea49c618651
parent592cd5defd4f71d34ffcbd8dd3326bc10f662e20
gpio: dwapb_gpio: Change to use devm_kcalloc()

Change to use managed resource function devm_kcalloc(),
so it will auto free memory when driver is removed.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/gpio/dwapb_gpio.c