File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -536,8 +536,8 @@ static int __init of_platform_default_populate_init(void)
536
536
* ignore errors for the rest.
537
537
*/
538
538
for_each_node_by_type (node , "display" ) {
539
- if (!of_get_property (node , "linux,opened" , NULL ) ||
540
- !of_get_property (node , "linux,boot-display" , NULL ))
539
+ if (!of_property_read_bool (node , "linux,opened" ) ||
540
+ !of_property_read_bool (node , "linux,boot-display" ))
541
541
continue ;
542
542
dev = of_platform_device_create (node , "of-display" , NULL );
543
543
of_node_put (node );
@@ -551,7 +551,7 @@ static int __init of_platform_default_populate_init(void)
551
551
char buf [14 ];
552
552
const char * of_display_format = "of-display.%d" ;
553
553
554
- if (!of_get_property (node , "linux,opened" , NULL ) || node == boot_display )
554
+ if (!of_property_read_bool (node , "linux,opened" ) || node == boot_display )
555
555
continue ;
556
556
ret = snprintf (buf , sizeof (buf ), of_display_format , display_number ++ );
557
557
if (ret < sizeof (buf ))
You can’t perform that action at this time.
0 commit comments