diff options
author | Daniel Scally <djrscally@gmail.com> | 2021-01-07 14:28:26 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-26 19:21:34 +0100 |
commit | 5273382d03763277aaf8c6a2d6088e2afaee0cf0 (patch) | |
tree | 4215f43bb6fe0154f665400907d2ad6270f7600d /kernel | |
parent | ec9ded4fa864b1eeafb496902b014f5d5dd52994 (diff) | |
download | lwn-5273382d03763277aaf8c6a2d6088e2afaee0cf0.tar.gz lwn-5273382d03763277aaf8c6a2d6088e2afaee0cf0.zip |
media: device property: Return true in fwnode_device_is_available for NULL ops
Some types of fwnode_handle do not implement the device_is_available()
check, such as those created by software_nodes. There isn't really a
meaningful way to check for the availability of a device that doesn't
actually exist, so if the check isn't implemented just assume that the
"device" is present.
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions