]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hamradio: fix incompatible pointer in module parameter
authorDanny Kukawka <danny.kukawka@bisect.de>
Mon, 30 Jan 2012 12:00:18 +0000 (12:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2012 19:40:01 +0000 (14:40 -0500)
Fixed 'warning: return from incompatible pointer type' related
to module parameters.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/baycom_epp.c
drivers/net/hamradio/baycom_par.c

index 9537aaa50c2f5f9633922b582ea4e9d6d67f3572..49b8b58fc5c6f7823a9507ab2a0d75ab7d51dcac 100644 (file)
@@ -1162,7 +1162,7 @@ static void baycom_probe(struct net_device *dev)
 /*
  * command line settable parameters
  */
-static const char *mode[NR_PORTS] = { "", };
+static char *mode[NR_PORTS] = { "", };
 static int iobase[NR_PORTS] = { 0x378, };
 
 module_param_array(mode, charp, NULL, 0);
index 279d2296290a46d5567eb0647dcca528ca3d18f4..f1aea0c98333aed66ea757b7368f72a79a82fbfb 100644 (file)
@@ -477,7 +477,7 @@ static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr,
 /*
  * command line settable parameters
  */
-static const char *mode[NR_PORTS] = { "picpar", };
+static char *mode[NR_PORTS] = { "picpar", };
 static int iobase[NR_PORTS] = { 0x378, };
 
 module_param_array(mode, charp, NULL, 0);