From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@secretlab.ca (Grant Likely) Date: Wed, 8 Sep 2010 22:53:44 -0600 Subject: [PATCH] SPI: move PL022 probe call to subsys_initcall() In-Reply-To: <1283763732-19419-1-git-send-email-linus.walleij@stericsson.com> References: <1283763732-19419-1-git-send-email-linus.walleij@stericsson.com> Message-ID: <20100909045344.GC11833@angua.secretlab.ca> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Sep 06, 2010 at 11:02:12AM +0200, Linus Walleij wrote: > The PL022 SPI bus is sometimes used for early stuff like > regulators that need to be present at module_init() time, so > we move this to a subsys_initcall(). > > Cc: Lukasz Baj > Signed-off-by: Linus Walleij Applied, thanks. Note on the subject line: The preferred form for spi patches is: spi[/chip]: 'spi' in the header and the optional driver name are both lowercase. I fix patches up to match this form, but it is less work for me when I don't have to. g. > --- > drivers/spi/amba-pl022.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c > index 3db5402..f958072 100644 > --- a/drivers/spi/amba-pl022.c > +++ b/drivers/spi/amba-pl022.c > @@ -2324,7 +2324,7 @@ static int __init pl022_init(void) > return amba_driver_register(&pl022_driver); > } > > -module_init(pl022_init); > +subsys_initcall(pl022_init); > > static void __exit pl022_exit(void) > { > -- > 1.6.3.3 >