From: Robert Baldyga Date: Thu, 2 Apr 2015 13:13:02 +0000 (+0200) Subject: extcon: usb-gpio: register extcon device before IRQ registration X-Git-Tag: omap-for-v4.2/soc-pt1-take2~7^2^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc1aabad39f42fa293f2a944fd9327bba27b59cd;p=pandora-kernel.git 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 Acked-by: Roger Quadros Signed-off-by: Chanwoo Choi --- Reading git-diff-tree failed