From 2f0cb4753dd2b5fe71d04407213e2ef253dcdd32 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Thu, 9 Feb 2023 17:20:43 -0600 Subject: 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 Tested-by: Frank Rowand Link: https://lore.kernel.org/all/20230215215547.691573-2-robh@kernel.org/ Signed-off-by: Rob Herring --- drivers/of/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/of/platform.c') 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 -- cgit v1.2.3