pinctrl: at91: use devm_kasprintf() to avoid potential leaks (part 2)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Feb 2023 13:42:38 +0000 (15:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Mar 2023 12:52:34 +0000 (13:52 +0100)
commitf494c1913cbb34b9e2078b7b045c87c1ca6df791
treef98b1eb82cc1216d8f981f2a0c4ba4f19bc8473d
parentdc3c7404ed76870bec52e2f0760bc150b173e57e
pinctrl: at91: use devm_kasprintf() to avoid potential leaks (part 2)

Use devm_kasprintf() instead of kasprintf() to avoid any potential
leaks. At the moment drivers have no remove functionality hence
there is no need for fixes tag.

While at it, switch to use devm_kasprintf_strarray().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Tested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230215134242.37618-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c