Patchwork isdn/sc: Fix incorrect module_param_array types

login
register
mail settings
Submitter Geert Uytterhoeven
Date April 24, 2013, 12:46 p.m.
Message ID <1366807597-24314-1-git-send-email-geert@linux-m68k.org>
Download mbox | patch
Permalink /patch/239193/
State Accepted
Delegated to: David Miller
Headers show

Comments

Geert Uytterhoeven - April 24, 2013, 12:46 p.m.
drivers/isdn/sc/init.c: In function ‘__check_irq’:
drivers/isdn/sc/init.c:36: warning: return from incompatible pointer type
drivers/isdn/sc/init.c: In function ‘__check_ram’:
drivers/isdn/sc/init.c:37: warning: return from incompatible pointer type

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/isdn/sc/init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
David Miller - April 25, 2013, 8:24 a.m.
From: Geert Uytterhoeven <geert@linux-m68k.org>

Date: Wed, 24 Apr 2013 14:46:37 +0200

> drivers/isdn/sc/init.c: In function ‘__check_irq’:

> drivers/isdn/sc/init.c:36: warning: return from incompatible pointer type

> drivers/isdn/sc/init.c: In function ‘__check_ram’:

> drivers/isdn/sc/init.c:37: warning: return from incompatible pointer type

> 

> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>


Applied.

Patch

diff --git a/drivers/isdn/sc/init.c b/drivers/isdn/sc/init.c
index 6b580b2..ca997bd 100644
--- a/drivers/isdn/sc/init.c
+++ b/drivers/isdn/sc/init.c
@@ -33,8 +33,8 @@  static unsigned long ram[] = {0, 0, 0, 0};
 static bool do_reset = 0;
 
 module_param_array(io, int, NULL, 0);
-module_param_array(irq, int, NULL, 0);
-module_param_array(ram, int, NULL, 0);
+module_param_array(irq, byte, NULL, 0);
+module_param_array(ram, long, NULL, 0);
 module_param(do_reset, bool, 0);
 
 static int identify_board(unsigned long, unsigned int);