Skip to content
Permalink
Browse files

bcm270x: Remove unnecessary of_platform_populate

Since 4.8 of_platform_default_populate_init() does the same and it is
called at arch_initcall_sync.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information...
notro committed Oct 10, 2016
1 parent e745b4e commit 04e627ac9f4e107e3cffa52313c917bb296ff9a9
Showing with 0 additions and 20 deletions.
  1. +0 −10 arch/arm/mach-bcm2708/bcm2708.c
  2. +0 −10 arch/arm/mach-bcm2709/bcm2709.c
@@ -21,7 +21,6 @@
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <asm/system_info.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -100,17 +99,8 @@ void __init bcm2708_map_io(void)

static void __init bcm2708_init(void)
{
int ret;

vc_cma_early_init();

ret = of_platform_populate(NULL, of_default_bus_match_table, NULL,
NULL);
if (ret) {
pr_err("of_platform_populate failed: %d\n", ret);
BUG();
}

system_rev = boardrev;
system_serial_low = serial;
}
@@ -25,7 +25,6 @@
#include <linux/clocksource.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_platform.h>

#include <asm/system_info.h>
#include <asm/mach-types.h>
@@ -112,17 +111,8 @@ void __init bcm2709_map_io(void)

static void __init bcm2709_init(void)
{
int ret;

vc_cma_early_init();

ret = of_platform_populate(NULL, of_default_bus_match_table, NULL,
NULL);
if (ret) {
pr_err("of_platform_populate failed: %d\n", ret);
BUG();
}

system_rev = boardrev;
system_serial_low = serial;
}

0 comments on commit 04e627a

Please sign in to comment.
You can’t perform that action at this time.