Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc7cdf6c authored by Danny Kukawka's avatar Danny Kukawka Committed by David S. Miller
Browse files

hamradio: fix incompatible pointer in module parameter



Fixed 'warning: return from incompatible pointer type' related
to module parameters.

Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d45b9d39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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);