diff options
author | Guenter Roeck <[email protected]> | 2016-03-31 08:11:30 -0700 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2016-04-08 10:10:09 +0200 |
commit | 159f3cd92f17c61a4e2a47456de5865b114ef88e (patch) | |
tree | 4d3fc7e1a33a29249fc05749ac79f0695a3b7a8c /net/unix | |
parent | 476e2fc5cd430bbe17598833e79f8e8b9e4bbbc7 (diff) |
gpiolib: Defer gpio device setup until after gpiolib initialization
Since commit ff2b13592299 ("gpio: make the gpiochip a real device"),
attempts to add a gpio chip prior to gpiolib initialization cause
the system to crash. This happens because gpio_bus_type has not been
registered yet. Defer creating gpio devices until after gpiolib has
been initialized to fix the problem.
Cc: Greg Ungerer <[email protected]>
Cc: Alexandre Courbot <[email protected]>
Fixes: ff2b13592299 ("gpio: make the gpiochip a real device")
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions