https://github.com/torvalds/linux
Revision 476e2fc5cd430bbe17598833e79f8e8b9e4bbbc7 authored by Guenter Roeck on 31 March 2016, 15:11:29 UTC, committed by Linus Walleij on 08 April 2016, 08:10:09 UTC
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>
1 parent c4e5ffb
History
Tip revision: 476e2fc5cd430bbe17598833e79f8e8b9e4bbbc7 authored by Guenter Roeck on 31 March 2016, 15:11:29 UTC
gpiolib: Do not use devm functions when registering gpio chip
Tip revision: 476e2fc
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 343.6 KB
Makefile -rw-r--r-- 55.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top