From 53e4345906703785d6d02bd1b418abe2e8c9ebc1 Mon Sep 17 00:00:00 2001
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 5 Aug 2010 13:25:54 +0100
Subject: [PATCH] MIPS: BCM47xx: Migrate to new platform makefile style.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
 arch/mips/Kbuild.platforms | 1 +
 arch/mips/Makefile         | 7 -------
 arch/mips/bcm47xx/Platform | 7 +++++++
 3 files changed, 8 insertions(+), 7 deletions(-)
 create mode 100644 arch/mips/bcm47xx/Platform

diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms
index d99704cac561..e4c991efee91 100644
--- a/arch/mips/Kbuild.platforms
+++ b/arch/mips/Kbuild.platforms
@@ -2,6 +2,7 @@
 
 platforms += alchemy
 platforms += ar7
+platforms += bcm47xx
 platforms += cobalt
 platforms += dec
 platforms += jazz
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 24ba9394fa68..b855d066b82f 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -279,13 +279,6 @@ load-$(CONFIG_SIBYTE_SWARM)	:= 0xffffffff80100000
 core-$(CONFIG_SIBYTE_BIGSUR)	+= arch/mips/sibyte/swarm/
 load-$(CONFIG_SIBYTE_BIGSUR)	:= 0xffffffff80100000
 
-#
-# Broadcom BCM47XX boards
-#
-core-$(CONFIG_BCM47XX)		+= arch/mips/bcm47xx/
-cflags-$(CONFIG_BCM47XX)	+= -I$(srctree)/arch/mips/include/asm/mach-bcm47xx
-load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
-
 #
 # Broadcom BCM63XX boards
 #
diff --git a/arch/mips/bcm47xx/Platform b/arch/mips/bcm47xx/Platform
new file mode 100644
index 000000000000..874b7ca4cd11
--- /dev/null
+++ b/arch/mips/bcm47xx/Platform
@@ -0,0 +1,7 @@
+#
+# Broadcom BCM47XX boards
+#
+platform-$(CONFIG_BCM47XX)	+= bcm47xx/
+cflags-$(CONFIG_BCM47XX)	+=					\
+		-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
+load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
-- 
2.20.1