From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 1/4] Search for and publish cell OF platform devices earlier From: Benjamin Herrenschmidt To: Michael Ellerman In-Reply-To: <3ce7be4c77581ce103a8da9f33a734270c9dc6e8.1201240265.git.michael@ellerman.id.au> References: <3ce7be4c77581ce103a8da9f33a734270c9dc6e8.1201240265.git.michael@ellerman.id.au> Content-Type: text/plain Date: Tue, 05 Feb 2008 11:19:46 +1100 Message-Id: <1202170786.7079.24.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2008-01-25 at 16:59 +1100, Michael Ellerman wrote: > Currently cell publishes OF devices at device_initcall() time, which > means the earliest a driver can bind to a device is also device_initcall() > time. We have a driver we want to register before other devices, so > publish the devices at subsys_initcall() time. > > This should not cause any behaviour change for existing drivers, as they > are still bound at device_initcall() time. > > Signed-off-by: Michael Ellerman Acked-by: Benjamin Herrenschmidt > --- > arch/powerpc/platforms/cell/setup.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c > index e6534b5..a7f609b 100644 > --- a/arch/powerpc/platforms/cell/setup.c > +++ b/arch/powerpc/platforms/cell/setup.c > @@ -98,7 +98,7 @@ static int __init cell_publish_devices(void) > } > return 0; > } > -machine_device_initcall(cell, cell_publish_devices); > +machine_subsys_initcall(cell, cell_publish_devices); > > static void cell_mpic_cascade(unsigned int irq, struct irq_desc *desc) > {