commit | 476e2fc5cd430bbe17598833e79f8e8b9e4bbbc7 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Thu Mar 31 08:11:29 2016 -0700 |
committer | Linus Walleij <linus.walleij@linaro.org> | Fri Apr 08 10:10:09 2016 +0200 |
tree | 89d991aa2df44ae4cbb2917ef4dda6ff55c57745 | |
parent | c4e5ffb6f224c1a4a9eaad82b19645ec22d1b24f [diff] |
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>