summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/dec
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2012-11-27 03:47:17 +0400
committerDavid S. Miller <davem@davemloft.net>2012-11-28 20:35:07 +0400
commita80e27573726d04d7046ee8601ca2795e6963840 (patch)
tree2fa73154d2a812d4af0f63634f6b1ea9953c851d /drivers/net/ethernet/dec
parentf81d3af99016dd5e9b3b72be17b9b52ed0481ddf (diff)
downloadlinux-a80e27573726d04d7046ee8601ca2795e6963840.tar.xz
ewrk3: silence GCC warning
Building ewrk3.o triggers this GCC warning: drivers/net/ethernet/dec/ewrk3.c: In function '__check_irq': drivers/net/ethernet/dec/ewrk3.c:1915:1: warning: return from incompatible pointer type [enabled by default] This can be trivially fixed by changing the 'irq' parameter from int to byte (which is an alias for unsigned char for module parameters). Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dec')
-rw-r--r--drivers/net/ethernet/dec/ewrk3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/ewrk3.c b/drivers/net/ethernet/dec/ewrk3.c
index 17ae8c619680..2ee1c4797dfb 100644
--- a/drivers/net/ethernet/dec/ewrk3.c
+++ b/drivers/net/ethernet/dec/ewrk3.c
@@ -1912,7 +1912,7 @@ static int io[MAX_NUM_EWRK3S+1] = { 0x300, 0, };
/* '21' below should really be 'MAX_NUM_EWRK3S' */
module_param_array(io, int, NULL, 0);
-module_param_array(irq, int, NULL, 0);
+module_param_array(irq, byte, NULL, 0);
MODULE_PARM_DESC(io, "EtherWORKS 3 I/O base address(es)");
MODULE_PARM_DESC(irq, "EtherWORKS 3 IRQ number(s)");