summaryrefslogtreecommitdiffstats
path: root/drivers/spi/amba-pl022.c
diff options
context:
space:
mode:
authorLinus Walleij2010-09-06 11:02:12 +0200
committerGrant Likely2010-09-09 06:50:10 +0200
commit25c8e03bdb769dfe2381f8b7942f05b0eb4bdf31 (patch)
treee75b237194b51c3df7101ca27e751c8fed828ffa /drivers/spi/amba-pl022.c
parentpowerpc/5200: mpc52xx_uart.c: Add of_node_put to avoid memory leak (diff)
downloadkernel-qcow2-linux-25c8e03bdb769dfe2381f8b7942f05b0eb4bdf31.tar.gz
kernel-qcow2-linux-25c8e03bdb769dfe2381f8b7942f05b0eb4bdf31.tar.xz
kernel-qcow2-linux-25c8e03bdb769dfe2381f8b7942f05b0eb4bdf31.zip
spi/pl022: move probe call to subsys_initcall()
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(). Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/amba-pl022.c')
-rw-r--r--drivers/spi/amba-pl022.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index 80613abe961d..4c37c4e28647 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1983,7 +1983,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)
{