]> 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)
commit0fd2eee8541e39c82f10b72c772547b195e25ca3
tree89d991aa2df44ae4cbb2917ef4dda6ff55c57745
parent4717eb3247e8c7c9f4d445c459a396bf770ce5d9
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