Skip to content

Commit

Permalink
spi/bfin_spi: init early
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hennerich authored and Mike Frysinger committed Oct 18, 2010
1 parent 2e76865 commit 6f7c17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6f7c17f

Please sign in to comment.