File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,10 @@ static int __init of_platform_default_populate_init(void)
540
540
of_node_put (node );
541
541
}
542
542
543
+ node = of_get_compatible_child (of_chosen , "simple-framebuffer" );
544
+ of_platform_device_create (node , NULL , NULL );
545
+ of_node_put (node );
546
+
543
547
/* Populate everything else. */
544
548
of_platform_default_populate (NULL , NULL , NULL );
545
549
Original file line number Diff line number Diff line change @@ -530,26 +530,7 @@ static struct platform_driver simplefb_driver = {
530
530
.remove = simplefb_remove ,
531
531
};
532
532
533
- static int __init simplefb_init (void )
534
- {
535
- int ret ;
536
- struct device_node * np ;
537
-
538
- ret = platform_driver_register (& simplefb_driver );
539
- if (ret )
540
- return ret ;
541
-
542
- if (IS_ENABLED (CONFIG_OF_ADDRESS ) && of_chosen ) {
543
- for_each_child_of_node (of_chosen , np ) {
544
- if (of_device_is_compatible (np , "simple-framebuffer" ))
545
- of_platform_device_create (np , NULL , NULL );
546
- }
547
- }
548
-
549
- return 0 ;
550
- }
551
-
552
- fs_initcall (simplefb_init );
533
+ module_platform_driver (simplefb_driver );
553
534
554
535
MODULE_AUTHOR (
"Stephen Warren <[email protected] >" );
555
536
MODULE_DESCRIPTION ("Simple framebuffer driver" );
You can’t perform that action at this time.
0 commit comments