Skip to content

Commit 994894c

Browse files
robherringstffrdhrn
authored andcommitted
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: Rob Herring <robh@kernel.org> Cc: Jonas Bonn <jonas@southpole.se> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Stafford Horne <shorne@gmail.com>
1 parent 34bbdcd commit 994894c

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎arch/openrisc/kernel/setup.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include <linux/of.h>
3939
#include <linux/memblock.h>
4040
#include <linux/device.h>
41-
#include <linux/of_platform.h>
4241

4342
#include <asm/sections.h>
4443
#include <asm/segment.h>
@@ -219,15 +218,6 @@ void __init or32_early_setup(void *fdt)
219218
early_init_devtree(fdt);
220219
}
221220

222-
static int __init openrisc_device_probe(void)
223-
{
224-
of_platform_populate(NULL, NULL, NULL, NULL);
225-
226-
return 0;
227-
}
228-
229-
device_initcall(openrisc_device_probe);
230-
231221
static inline unsigned long extract_value_bits(unsigned long reg,
232222
short bit_nr, short width)
233223
{

0 commit comments

Comments
 (0)