]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit476e2fc5cd430bbe17598833e79f8e8b9e4bbbc7
tree89d991aa2df44ae4cbb2917ef4dda6ff55c57745
parentc4e5ffb6f224c1a4a9eaad82b19645ec22d1b24f
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