pinctrl: at91: Don't mix non-devm calls with devm ones
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Feb 2023 13:42:39 +0000 (15:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Mar 2023 12:52:34 +0000 (13:52 +0100)
commit415a099ea55ae716b69beefdcaa654b96087c016
treee0ece0254cfe5c0d3c5ee110db58d2210ad5b8c3
parentf494c1913cbb34b9e2078b7b045c87c1ca6df791
pinctrl: at91: Don't mix non-devm calls with devm ones

Replace devm_clk_get() by devm_clk_get_enabled() and drop
unneeded code pieces. This will make sure we keep the ordering
of the resource allocation correct.

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-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c