From: Tomasz Figa Date: Thu, 16 Oct 2014 13:11:44 +0000 (+0200) Subject: extcon: Implement OF-based extcon lookup properly X-Git-Tag: omap-for-v3.19/fixes-rc1~84^2~27^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f841afb17476f485900bb6213cf93a64a7dc303f;p=pandora-kernel.git extcon: Implement OF-based extcon lookup properly Platform bus is not the only way to have extcon devices, so current implementation of of_extcon_get_extcon_dev() is broken. Also using parent device node only to get device name is quite ugly. This patch reimplements of_extcon_get_extcon_dev() to do exactly the same as extcon_get_extcon_dev() but instead of comparing names, compare node pointers. Signed-off-by: Tomasz Figa [mszyprow: simplified the code] Signed-off-by: Marek Szyprowski Signed-off-by: Chanwoo Choi --- Reading git-diff-tree failed