2008-02-27 20:11:29

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] arm: eliminate MODULE_PARM() usage

From: Randy Dunlap <[email protected]>

Convert debug-only (and removed) MODULE_PARM() to module_param().
Compiles cleanly (with DEBUG=1).

Signed-off-by: Randy Dunlap <[email protected]>
---
arch/arm/mach-pxa/cpu-pxa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- next-20080227.orig/arch/arm/mach-pxa/cpu-pxa.c
+++ next-20080227/arch/arm/mach-pxa/cpu-pxa.c
@@ -43,7 +43,7 @@

#ifdef DEBUG
static unsigned int freq_debug;
-MODULE_PARM(freq_debug, "i");
+module_param(freq_debug, uint, 0);
MODULE_PARM_DESC(freq_debug, "Set the debug messages to on=1/off=0");
#else
#define freq_debug 0


2008-02-28 19:36:41

by Russell King

[permalink] [raw]
Subject: Re: [PATCH] arm: eliminate MODULE_PARM() usage

On Wed, Feb 27, 2008 at 12:11:16PM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> Convert debug-only (and removed) MODULE_PARM() to module_param().
> Compiles cleanly (with DEBUG=1).

Applied, thanks.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: