commit | bc1aabad39f42fa293f2a944fd9327bba27b59cd | [log] [tgz] |
---|---|---|
author | Robert Baldyga <r.baldyga@samsung.com> | Thu Apr 02 15:13:02 2015 +0200 |
committer | Chanwoo Choi <cw00.choi@samsung.com> | Mon Apr 27 11:06:05 2015 +0900 |
tree | f7f4527037d92b73b54e1a4c151c6447aa016761 | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 [diff] |
extcon: usb-gpio: register extcon device before IRQ registration IRQ handler touches info->edev, so if interrupt occurs before extcon device initialization it can cause NULL pointer dereference. Doing extcon initialization before IRQ handler registration fixes this problem. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Acked-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>