All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] eeepc-laptop: fix hotplug_disabled module_param permissions
@ 2010-07-12  1:15 Axel Lin
  2010-07-22 15:11 ` Matthew Garrett
  0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2010-07-12  1:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Corentin Chary, Matthew Garrett, Andrew Morton, Alan Jenkins,
	acpi4asus-user, platform-driver-x86

The hotplug_disabled module parameter is determinated at the module load time.
Change the value after the module is loaded does not make sense and has
no effect at all, thus set the permissions to 0444 instead of 0644.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/platform/x86/eeepc-laptop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index 0306174..6b8e062 100644
--- a/drivers/platform/x86/eeepc-laptop.c
+++ b/drivers/platform/x86/eeepc-laptop.c
@@ -53,7 +53,7 @@ MODULE_LICENSE("GPL");
 
 static bool hotplug_disabled;
 
-module_param(hotplug_disabled, bool, 0644);
+module_param(hotplug_disabled, bool, 0444);
 MODULE_PARM_DESC(hotplug_disabled,
 		 "Disable hotplug for wireless device. "
 		 "If your laptop need that, please report to "
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-23  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12  1:15 [PATCH] eeepc-laptop: fix hotplug_disabled module_param permissions Axel Lin
2010-07-22 15:11 ` Matthew Garrett
2010-07-23  0:45   ` Axel Lin
2010-07-23  0:45     ` Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.