]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: armada-37xx: Switch to use devm_kasprintf_strarray()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 5 Nov 2021 12:42:35 +0000 (14:42 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 18 Nov 2021 16:40:09 +0000 (18:40 +0200)
commitb3c26a2391182a94afa3313a1d6feebe372f4b72
treec2413bee0fdf2b50eb56f318baf071fe9c11354e
parentb101bceb8b5b3f258fd475236541f10ef0ac9ae8
pinctrl: armada-37xx: Switch to use devm_kasprintf_strarray()

Since we have a generic helper, switch the module to use it.

As a side effect, add check for the memory allocation failures and
cleanup it either in error case or when driver is unloading.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c