[maverick][PATCH] UBUNTU: SAUCE: Load SysLink modules on start-up on OMAP4 devices
Lee Jones
lee.jones at canonical.com
Wed Jul 7 15:54:41 UTC 2010
How about this Nicolas?
This patch registers the SysLink driver-set as a platform device.
During the registration process a uevent will be fired, allowing
udev to pick it up and load the necessary loadable modules.
Signed-off-by: Lee Jones <lee.jones at canonical.com>
---
arch/arm/mach-omap2/omap4-common.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 91b5d36..dcc9f99 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -71,4 +71,23 @@ static int __init omap_l2_cache_init(void)
early_initcall(omap_l2_cache_init);
#endif
+static struct platform_device omap4_syslink_device = {
+ .name = "syslink_ipc",
+ .id = -1,
+ .num_resources = 0,
+};
+static int __init omap4_syslink_init(void)
+{
+ int retval;
+
+ retval = platform_device_register(&omap4_syslink_device);
+
+ if (retval != 0)
+ pr_err("%s: Failed to register devices: %d\n", __func__, retval);
+ else
+ pr_info("%s: Successfully registered devices\n", __func__);
+
+ return retval;
+}
+device_initcall(omap4_syslink_init);
More information about the kernel-team
mailing list