<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Colin Leroy &lt;colin.lkml@colino.net&gt;

This patch replaces MODULE_PARM to module_param for adt746x.

Signed-off-by: Colin Leroy &lt;colin@colino.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/drivers/macintosh/therm_adt746x.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -puN drivers/macintosh/therm_adt746x.c~switch-therm_adt746x-to-new-module_param drivers/macintosh/therm_adt746x.c
--- 25/drivers/macintosh/therm_adt746x.c~switch-therm_adt746x-to-new-module_param	Wed Nov 17 13:58:12 2004
+++ 25-akpm/drivers/macintosh/therm_adt746x.c	Wed Nov 17 13:58:12 2004
@@ -23,6 +23,8 @@
 #include &lt;linux/smp_lock.h&gt;
 #include &lt;linux/wait.h&gt;
 #include &lt;linux/suspend.h&gt;
+#include &lt;linux/kthread.h&gt;
+#include &lt;linux/moduleparam.h&gt;
 
 #include &lt;asm/prom.h&gt;
 #include &lt;asm/machdep.h&gt;
@@ -30,7 +32,6 @@
 #include &lt;asm/system.h&gt;
 #include &lt;asm/sections.h&gt;
 #include &lt;asm/of_device.h&gt;
-#include &lt;linux/kthread.h&gt;
 
 #undef DEBUG
 
@@ -56,11 +57,11 @@ MODULE_DESCRIPTION("Driver for ADT746x t
 		   "Powerbook G4 Alu");
 MODULE_LICENSE("GPL");
 
-MODULE_PARM(limit_adjust,"i");
+module_param(limit_adjust, int, 0644);
 MODULE_PARM_DESC(limit_adjust,"Adjust maximum temperatures (50 cpu, 70 gpu) "
 		 "by N degrees.");
 
-MODULE_PARM(fan_speed,"i");
+module_param(fan_speed, int, 0644);
 MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) "
 		 "(default 64)");
 
_
</pre></body></html>