media: staging: media: tegra-video: Replace custom implementation of device_match_fwn...
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Sep 2022 17:30:11 +0000 (18:30 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 06:44:47 +0000 (06:44 +0000)
Replace custom implementation of the device_match_fwnode().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/tegra-video/vi.c

index 9d46a36..11dd142 100644 (file)
@@ -1811,7 +1811,7 @@ static int tegra_vi_graph_parse_one(struct tegra_vi_channel *chan,
                }
 
                /* skip entities that are already processed */
-               if (remote == dev_fwnode(vi->dev) ||
+               if (device_match_fwnode(vi->dev, remote) ||
                    tegra_vi_graph_find_entity(chan, remote)) {
                        fwnode_handle_put(remote);
                        continue;