media: rcar-vin: Remove explicit device availability check
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 24 Jun 2021 08:40:45 +0000 (10:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:35 +0000 (10:07 +0200)
The fwnode is retrieved using fwnode_graph_get_endpoint_by_id() without
the FWNODE_GRAPH_DEVICE_DISABLED flag set. So there is no need to
explicitly check if the fwnode is available as it always will be when
the check is performed, remove it.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c

index 8cb27c1..1d92cc8 100644 (file)
@@ -330,13 +330,6 @@ static int rvin_group_parse_of(struct rvin_dev *vin, unsigned int port,
                goto out;
        }
 
-       if (!of_device_is_available(to_of_node(fwnode))) {
-               vin_dbg(vin, "OF device %pOF disabled, ignoring\n",
-                       to_of_node(fwnode));
-               ret = -ENOTCONN;
-               goto out;
-       }
-
        asd = v4l2_async_nf_add_fwnode(&vin->group->notifier, fwnode,
                                       struct v4l2_async_subdev);
        if (IS_ERR(asd)) {