Skip to content

Commit

Permalink
hamradio: fix incompatible pointer in module parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Danny Kukawka authored and David S. Miller committed Feb 1, 2012
1 parent d45b9d3 commit dc7cdf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/hamradio/baycom_epp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/hamradio/baycom_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc7cdf6

Please sign in to comment.