Patchwork [2/3] Platform: fix module autoloading for ACPI enumerated devices

login
register
mail settings
Submitter Zhang Rui
Date Oct. 14, 2013, 9:10 a.m.
Message ID <1381741834-7334-2-git-send-email-rui.zhang@intel.com>
Download mbox | patch
Permalink /patch/283155/
State Deferred
Headers show

Comments

Zhang Rui - Oct. 14, 2013, 9:10 a.m.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
 drivers/base/platform.c |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 4f8bef3..80d2250 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -690,6 +690,10 @@  static int platform_uevent(struct device *dev, struct kobj_uevent_env *env)
 	if (rc != -ENODEV)
 		return rc;
 
+	rc = acpi_device_uevent_modalias(dev, env);
+	if (rc != -ENODEV)
+		return rc;
+
 	add_uevent_var(env, "MODALIAS=%s%s", PLATFORM_MODULE_PREFIX,
 			pdev->name);
 	return 0;