Commit 994894c3 authored by Rob Herring's avatar Rob Herring Committed by Stafford Horne
Browse files

openrisc: remove the redundant of_platform_populate

The of_platform_populate call in the openrisc arch code is now redundant
as the DT core provides a default call. Openrisc has a NULL match table
which means only top level nodes with compatible strings will have
devices creates. The default version will also descend nodes in the
match table such as "simple-bus" which should be fine as openrisc
doesn't have any of these (though it is preferred that memory-mapped
peripherals be grouped under a bus node(s)).

Signed-off-by: default avatarRob Herring <>
Cc: Jonas Bonn <>
Tested-by: default avatarGuenter Roeck <>
Signed-off-by: default avatarStafford Horne <>
parent 34bbdcdc
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/memblock.h> #include <linux/memblock.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/of_platform.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/segment.h> #include <asm/segment.h>
...@@ -219,15 +218,6 @@ void __init or32_early_setup(void *fdt) ...@@ -219,15 +218,6 @@ void __init or32_early_setup(void *fdt)
early_init_devtree(fdt); early_init_devtree(fdt);
} }
static int __init openrisc_device_probe(void)
of_platform_populate(NULL, NULL, NULL, NULL);
return 0;
static inline unsigned long extract_value_bits(unsigned long reg, static inline unsigned long extract_value_bits(unsigned long reg,
short bit_nr, short width) short bit_nr, short width)
{ {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment