Skip to content

Commit

Permalink
[PATCH] aoa: fix when all is built into the kernel
Browse files Browse the repository at this point in the history
This patch fixes initialisation issues when all of aoa is built into the
kernel by re-ordering the link order in the Makefile and making the soundbus
use subsys_initcall so it is initialised earlier.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ozbenh authored and Linus Torvalds committed Jul 10, 2006
1 parent 389ba79 commit a08bc4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions sound/aoa/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
obj-$(CONFIG_SND_AOA) += core/
obj-$(CONFIG_SND_AOA) += codecs/
obj-$(CONFIG_SND_AOA) += fabrics/
obj-$(CONFIG_SND_AOA_SOUNDBUS) += soundbus/
obj-$(CONFIG_SND_AOA) += fabrics/
obj-$(CONFIG_SND_AOA) += codecs/
22 changes: 11 additions & 11 deletions sound/aoa/soundbus/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,6 @@ static struct bus_type soundbus_bus_type = {
.dev_attrs = soundbus_dev_attrs,
};

static int __init soundbus_init(void)
{
return bus_register(&soundbus_bus_type);
}

static void __exit soundbus_exit(void)
{
bus_unregister(&soundbus_bus_type);
}

int soundbus_add_one(struct soundbus_dev *dev)
{
static int devcount;
Expand Down Expand Up @@ -246,5 +236,15 @@ void soundbus_unregister_driver(struct soundbus_driver *drv)
}
EXPORT_SYMBOL_GPL(soundbus_unregister_driver);

module_init(soundbus_init);
static int __init soundbus_init(void)
{
return bus_register(&soundbus_bus_type);
}

static void __exit soundbus_exit(void)
{
bus_unregister(&soundbus_bus_type);
}

subsys_initcall(soundbus_init);
module_exit(soundbus_exit);

0 comments on commit a08bc4c

Please sign in to comment.