diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-09-27 20:19:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-30 14:55:13 +0300 |
commit | c9180362a920b99f2aef7d55b89ae94b8138474e (patch) | |
tree | 1e8e5b725642599b817e19f9b106671feb8f0d37 /drivers/usb/typec/retimer.c | |
parent | fce703a991b7e8c7e1371de95b9abaa832ecf9c3 (diff) | |
download | linux-c9180362a920b99f2aef7d55b89ae94b8138474e.tar.xz |
usb: typec: 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>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220927171924.61908-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/typec/retimer.c')
-rw-r--r-- | drivers/usb/typec/retimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/retimer.c b/drivers/usb/typec/retimer.c index 2003731f1bee..ee94dbbe4745 100644 --- a/drivers/usb/typec/retimer.c +++ b/drivers/usb/typec/retimer.c @@ -31,7 +31,7 @@ static bool dev_name_ends_with(struct device *dev, const char *suffix) static int retimer_fwnode_match(struct device *dev, const void *fwnode) { - return dev_fwnode(dev) == fwnode && dev_name_ends_with(dev, "-retimer"); + return device_match_fwnode(dev, fwnode) && dev_name_ends_with(dev, "-retimer"); } static void *typec_retimer_match(struct fwnode_handle *fwnode, const char *id, void *data) |