mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02: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:
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user