summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2010-07-01 14:34:10 (GMT)
committerMike Frysinger <vapier@gentoo.org>2010-10-18 06:49:44 (GMT)
commit6f7c17f4f91513247dfec52d6968cd70d5251b38 (patch)
tree56daffd05c022f4869ecf4ffd0b8fa17a4734b05 /drivers
parent2e768659df35ea337cb57ea3573c918d31e07894 (diff)
downloadlinux-6f7c17f4f91513247dfec52d6968cd70d5251b38.tar.xz
spi/bfin_spi: init early
Some systems using this bus sometimes have very basic devices on them such as regulators. So we need to be loaded even earlier in case the devices are used by things such as early board init code. Therefore register in subsys_initcall(). Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi_bfin5xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index bd18214..d17ab37 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/drivers/spi/spi_bfin5xx.c
@@ -1466,7 +1466,7 @@ static int __init bfin_spi_init(void)
{
return platform_driver_probe(&bfin_spi_driver, bfin_spi_probe);
}
-module_init(bfin_spi_init);
+subsys_initcall(bfin_spi_init);
static void __exit bfin_spi_exit(void)
{