diff options
author | Rob Herring <robh@kernel.org> | 2023-02-09 17:20:43 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-02-17 15:21:36 -0600 |
commit | 2f0cb4753dd2b5fe71d04407213e2ef253dcdd32 (patch) | |
tree | b30d82a0e3faa4f3e879d36591d9755aaca29c30 /drivers/of/platform.c | |
parent | 9cbad37ce8122de32a1529e394b468bc101c9e7f (diff) | |
download | lwn-2f0cb4753dd2b5fe71d04407213e2ef253dcdd32.tar.gz lwn-2f0cb4753dd2b5fe71d04407213e2ef253dcdd32.zip |
of: Use of_property_present() helper
Use of_property_present() instead of of_get_property/of_find_property()
in places where we just need to test presence of a property.
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Tested-by: Frank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/all/20230215215547.691573-2-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 81c8c227ab6b..f7d796b54039 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -528,7 +528,7 @@ static int __init of_platform_default_populate_init(void) int ret; /* Check if we have a MacOS display without a node spec */ - if (of_get_property(of_chosen, "linux,bootx-noscreen", NULL)) { + if (of_property_present(of_chosen, "linux,bootx-noscreen")) { /* * The old code tried to work out which node was the MacOS * display based on the address. I'm dropping that since the |