Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: rcar-vin: Remove explicit device availability check

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>

authored by

Niklas Söderlund and committed by
Mauro Carvalho Chehab
12f6517f 3c8c1539

-7
-7
drivers/media/platform/rcar-vin/rcar-core.c
··· 330 330 goto out; 331 331 } 332 332 333 - if (!of_device_is_available(to_of_node(fwnode))) { 334 - vin_dbg(vin, "OF device %pOF disabled, ignoring\n", 335 - to_of_node(fwnode)); 336 - ret = -ENOTCONN; 337 - goto out; 338 - } 339 - 340 333 asd = v4l2_async_nf_add_fwnode(&vin->group->notifier, fwnode, 341 334 struct v4l2_async_subdev); 342 335 if (IS_ERR(asd)) {