mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
i2c: core: Replace custom implementation of device_match_fwnode()
Replace custom implementation of the device_match_fwnode(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
committed by
Wolfram Sang
parent
1a1c74b66a
commit
861e0f8d81
@@ -1852,10 +1852,10 @@ EXPORT_SYMBOL_GPL(devm_i2c_add_adapter);
|
||||
|
||||
static int i2c_dev_or_parent_fwnode_match(struct device *dev, const void *data)
|
||||
{
|
||||
if (dev_fwnode(dev) == data)
|
||||
if (device_match_fwnode(dev, data))
|
||||
return 1;
|
||||
|
||||
if (dev->parent && dev_fwnode(dev->parent) == data)
|
||||
if (dev->parent && device_match_fwnode(dev->parent, data))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user