Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: Use device_match_of_node() helper

Instead of open coding, use device_match_of_node() helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Andy Shevchenko and committed by
Chanwoo Choi
0146f56b 2b5e61f5

+1 -1
+1 -1
drivers/extcon/extcon.c
··· 1405 1405 1406 1406 mutex_lock(&extcon_dev_list_lock); 1407 1407 list_for_each_entry(edev, &extcon_dev_list, entry) 1408 - if (edev->dev.parent && edev->dev.parent->of_node == node) 1408 + if (edev->dev.parent && device_match_of_node(edev->dev.parent, node)) 1409 1409 goto out; 1410 1410 edev = ERR_PTR(-EPROBE_DEFER); 1411 1411 out: