]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: Do not use devm functions when registering gpio chip
authorGuenter Roeck <linux@roeck-us.net>
Thu, 31 Mar 2016 15:11:29 +0000 (08:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Apr 2016 08:10:09 +0000 (10:10 +0200)
commit6a81ab79350314c9062a368d78269b590bf970fe
tree89d991aa2df44ae4cbb2917ef4dda6ff55c57745
parent57bd17b5ac95c843a2ce8ada0a793ffb740e0aa3
gpiolib: Do not use devm functions when registering gpio chip

It is possible that a gpio chip is registered before the gpiolib
initialization code has run. This means we can not use devm_ functions
to allocate memory at that time. Do it the old fashioned way.

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c