Skip to content

Commit

Permalink
spi/pl022: move probe call to subsys_initcall()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Grant Likely committed Sep 9, 2010
1 parent 05f25ab commit 25c8e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/amba-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 25c8e03

Please sign in to comment.