lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 14 Feb 2011 16:50:07 +0800
From:	Axel Lin <axel.lin@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Jonathan Woithe <jwoithe@...sics.adelaide.edu.au>,
	Sujith Thomas <sujith.thomas@...el.com>,
	Carlos Corbacho <carlos@...angeworlds.co.uk>,
	Paul Fox <pgf@...top.org>, Matthew Garrett <mjg@...hat.com>,
	platform-driver-x86@...r.kernel.org
Subject: [PATCH] platform-drivers: x86: set acpi_driver.owner

The owner field provides the link between drivers and modules in sysfs.

After setting the owner field, we can see which module provides which
driver and vice versa by looking at /sys/bus/acpi/drivers/*/module and
/sys/module/*/drivers/acpi:*.

Signed-off-by: Axel Lin <axel.lin@...il.com>
Cc: Jonathan Woithe <jwoithe@...sics.adelaide.edu.au>
Cc: Sujith Thomas <sujith.thomas@...el.com>
Cc: Harald Welte <laforge@...monks.org>
Cc: Herton Ronaldo Krzesinski <herton@...driva.com.br>
Cc: Carlos Corbacho <carlos@...angeworlds.co.uk>
Cc: Paul Fox <pgf@...top.org>
---
 drivers/platform/x86/fujitsu-laptop.c   |    2 ++
 drivers/platform/x86/intel_menlow.c     |    1 +
 drivers/platform/x86/panasonic-laptop.c |    1 +
 drivers/platform/x86/topstar-laptop.c   |    1 +
 drivers/platform/x86/wmi.c              |    1 +
 drivers/platform/x86/xo15-ebook.c       |    1 +
 6 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c
index 95e3b09..cf2e5e1 100644
--- a/drivers/platform/x86/fujitsu-laptop.c
+++ b/drivers/platform/x86/fujitsu-laptop.c
@@ -1063,6 +1063,7 @@ static struct acpi_driver acpi_fujitsu_driver = {
 		.remove = acpi_fujitsu_remove,
 		.notify = acpi_fujitsu_notify,
 		},
+	.owner = THIS_MODULE,
 };
 
 static const struct acpi_device_id fujitsu_hotkey_device_ids[] = {
@@ -1079,6 +1080,7 @@ static struct acpi_driver acpi_fujitsu_hotkey_driver = {
 		.remove = acpi_fujitsu_hotkey_remove,
 		.notify = acpi_fujitsu_hotkey_notify,
 		},
+	.owner = THIS_MODULE,
 };
 
 static int __init fujitsu_init(void)
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c
index eacd5da..567ab4e 100644
--- a/drivers/platform/x86/intel_menlow.c
+++ b/drivers/platform/x86/intel_menlow.c
@@ -225,6 +225,7 @@ static struct acpi_driver intel_menlow_memory_driver = {
 		.add = intel_menlow_memory_add,
 		.remove = intel_menlow_memory_remove,
 		},
+	.owner = THIS_MODULE,
 };
 
 /*
diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c
index cc1e0ba..92fec38 100644
--- a/drivers/platform/x86/panasonic-laptop.c
+++ b/drivers/platform/x86/panasonic-laptop.c
@@ -199,6 +199,7 @@ static struct acpi_driver acpi_pcc_driver = {
 				.resume =       acpi_pcc_hotkey_resume,
 				.notify =	acpi_pcc_hotkey_notify,
 			},
+	.owner =	THIS_MODULE,
 };
 
 static const struct key_entry panasonic_keymap[] = {
diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c
index 1d07d6d..3b12bc6 100644
--- a/drivers/platform/x86/topstar-laptop.c
+++ b/drivers/platform/x86/topstar-laptop.c
@@ -184,6 +184,7 @@ static struct acpi_driver acpi_topstar_driver = {
 		.remove = acpi_topstar_remove,
 		.notify = acpi_topstar_notify,
 	},
+	.owner = THIS_MODULE,
 };
 
 static int __init topstar_laptop_init(void)
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 05cc796..754117d 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -111,6 +111,7 @@ static struct acpi_driver acpi_wmi_driver = {
 		.remove = acpi_wmi_remove,
 		.notify = acpi_wmi_notify,
 	},
+	.owner = THIS_MODULE,
 };
 
 /*
diff --git a/drivers/platform/x86/xo15-ebook.c b/drivers/platform/x86/xo15-ebook.c
index c1372ed..5639837 100644
--- a/drivers/platform/x86/xo15-ebook.c
+++ b/drivers/platform/x86/xo15-ebook.c
@@ -164,6 +164,7 @@ static struct acpi_driver xo15_ebook_driver = {
 		.remove = ebook_switch_remove,
 		.notify = ebook_switch_notify,
 	},
+	.owner = THIS_MODULE,
 };
 
 static int __init xo15_ebook_init(void)
-- 
1.7.2



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ