aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm/board_bcm2835.c
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2016-06-01 14:52:56 +0800
committerRob Herring <[email protected]>2016-06-23 14:58:37 -0500
commit850bea2335e42780a0752a75860d3fbcc3d12d6e (patch)
treeee81a7df0331c86e5dfff8d0c65acf6a59b9f7a4 /arch/arm/mach-bcm/board_bcm2835.c
parent61c78644e7f1bd9445b3d7ddc3d35989a38985ee (diff)
arm: Remove unnecessary of_platform_populate with default match table
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Acked-by: Viresh Kumar <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Ray Jui <[email protected]> Cc: Lee Jones <[email protected]> Cc: Krzysztof Halasa <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Rob Herring <[email protected]> Cc: Shawn Guo <[email protected]> Cc: Santosh Shilimkar <[email protected]> Cc: Roland Stigge <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Haojian Zhuang <[email protected]> Cc: Heiko Stuebner <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Shiraz Hashim <[email protected]> Cc: Tony Prisk <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'arch/arm/mach-bcm/board_bcm2835.c')
-rw-r--r--arch/arm/mach-bcm/board_bcm2835.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-bcm/board_bcm2835.c b/arch/arm/mach-bcm/board_bcm2835.c
index 834d67684e20..0c1edfc98696 100644
--- a/arch/arm/mach-bcm/board_bcm2835.c
+++ b/arch/arm/mach-bcm/board_bcm2835.c
@@ -15,7 +15,6 @@
#include <linux/init.h>
#include <linux/irqchip.h>
#include <linux/of_address.h>
-#include <linux/of_platform.h>
#include <linux/clk/bcm2835.h>
#include <asm/mach/arch.h>
@@ -23,16 +22,7 @@
static void __init bcm2835_init(void)
{
- int ret;
-
bcm2835_init_clocks();
-
- ret = of_platform_populate(NULL, of_default_bus_match_table, NULL,
- NULL);
- if (ret) {
- pr_err("of_platform_populate failed: %d\n", ret);
- BUG();
- }
}
static const char * const bcm2835_compat[] = {