linux-mips
[Top] [All Lists]

[PATCH 5/6] Alchemy: don't unconditionally register all alchemy platform

To: Linux-MIPS <linux-mips@linux-mips.org>
Subject: [PATCH 5/6] Alchemy: don't unconditionally register all alchemy platform devices
From: Manuel Lauss <mano@roarinelk.homelinux.net>
Date: Wed, 25 Mar 2009 17:49:32 +0100
Cc: Manuel Lauss <mano@roarinelk.homelinux.net>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=MEGxdaAXtPn5UfCqtH7ucaL9dy917cqENjtnchxelTU=; b=Za+ukQWPnA72QmXQfAJr/CfWOpImcCGLp03Ba6lmxO/7nXJx3XBcVri7vr4IcAb0Nj UA8aS7tqA8uFFsEnruXNUJval8KsdfcuosXK6R1u9VQXdpaCZcZc5pqZDrl6wD8SdWt9 CYsaIx7j0701s7YwCiT+orIm+qZsIXGYtaK/8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=c4vrFAsukKBrYksBUxamctHnMiFgeJmKltus2OPL0lrwwl8J+ihfLUl3z0wxWnuOR7 LLKGRiRLJ45cuwd10tSfxR3exOvjYdwpnDAR+V9a5Cqsg6vSUn2nqAkmQKJu+HnwJz2Y al+06+/Onjc0wNqM8P2I6yXGu9PE35yFXeSv0=
In-reply-to: <1237999773-5174-5-git-send-email-mano@roarinelk.homelinux.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1237999773-5174-1-git-send-email-mano@roarinelk.homelinux.net> <1237999773-5174-2-git-send-email-mano@roarinelk.homelinux.net> <1237999773-5174-3-git-send-email-mano@roarinelk.homelinux.net> <1237999773-5174-4-git-send-email-mano@roarinelk.homelinux.net> <1237999773-5174-5-git-send-email-mano@roarinelk.homelinux.net>
Sender: linux-mips-bounce@linux-mips.org
Not every board may want to register all available alchemy drivers;
besides it makes passing platform_data ugly since the device registration
and its platform data are in separate files.  I don't like that.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
---
 arch/mips/alchemy/common/Makefile    |    2 +-
 arch/mips/alchemy/devboards/Makefile |    2 +-
 arch/mips/alchemy/mtx-1/Makefile     |    2 +-
 arch/mips/alchemy/xxs1500/Makefile   |    1 +
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/mips/alchemy/common/Makefile 
b/arch/mips/alchemy/common/Makefile
index d50d476..941229f 100644
--- a/arch/mips/alchemy/common/Makefile
+++ b/arch/mips/alchemy/common/Makefile
@@ -6,7 +6,7 @@
 #
 
 obj-y += prom.o irq.o puts.o time.o reset.o \
-       clocks.o platform.o power.o setup.o \
+       clocks.o power.o setup.o \
        sleeper.o dma.o dbdma.o gpio.o
 
 obj-$(CONFIG_PCI)              += pci.o
diff --git a/arch/mips/alchemy/devboards/Makefile 
b/arch/mips/alchemy/devboards/Makefile
index 730f9f2..7b36ba4 100644
--- a/arch/mips/alchemy/devboards/Makefile
+++ b/arch/mips/alchemy/devboards/Makefile
@@ -2,7 +2,7 @@
 # Alchemy Develboards
 #
 
-obj-y += prom.o
+obj-y += prom.o ../common/platform.o
 obj-$(CONFIG_PM)               += pm.o
 obj-$(CONFIG_MIPS_PB1000)      += pb1000/
 obj-$(CONFIG_MIPS_PB1100)      += pb1100/
diff --git a/arch/mips/alchemy/mtx-1/Makefile b/arch/mips/alchemy/mtx-1/Makefile
index 7c67b3d..ef98975 100644
--- a/arch/mips/alchemy/mtx-1/Makefile
+++ b/arch/mips/alchemy/mtx-1/Makefile
@@ -7,6 +7,6 @@
 #
 
 lib-y := init.o board_setup.o irqmap.o
-obj-y := platform.o
+obj-y := platform.o ../common/platform.o
 
 EXTRA_CFLAGS += -Werror
diff --git a/arch/mips/alchemy/xxs1500/Makefile 
b/arch/mips/alchemy/xxs1500/Makefile
index db3c526..619a76c 100644
--- a/arch/mips/alchemy/xxs1500/Makefile
+++ b/arch/mips/alchemy/xxs1500/Makefile
@@ -6,3 +6,4 @@
 #
 
 lib-y := init.o board_setup.o irqmap.o
+obj-y += ../common/platform.o
-- 
1.6.2


<Prev in Thread] Current Thread [Next in Thread>