mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>,
	Sujith Thomas <sujith.thomas@intel.com>,
	Carlos Corbacho <carlos@strangeworlds.co.uk>,
	Paul Fox <pgf@laptop.org>, Matthew Garrett <mjg@redhat.com>,
	platform-driver-x86@vger.kernel.org
Subject: [PATCH] platform-drivers: x86: set acpi_driver.owner
Date: Mon, 14 Feb 2011 16:50:07 +0800	[thread overview]
Message-ID: <1297673407.11412.2.camel@mola> (raw)

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@gmail.com>
Cc: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Cc: Sujith Thomas <sujith.thomas@intel.com>
Cc: Harald Welte <laforge@gnumonks.org>
Cc: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Paul Fox <pgf@laptop.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




                 reply	other threads:[~2011-02-14  8:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1297673407.11412.2.camel@mola \
    --to=axel.lin@gmail.com \
    --cc=carlos@strangeworlds.co.uk \
    --cc=jwoithe@physics.adelaide.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg@redhat.com \
    --cc=pgf@laptop.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=sujith.thomas@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome