Commit a11b0e86 authored by Kurt Kanzenbach's avatar Kurt Kanzenbach Committed by Greg Kroah-Hartman

Staging: ft1000-usb: Fix call to obsolete function

strict_strtoul is obsolete and should be replaced with
kstrto* function as reported by checkpatch.pl.
pInfo->CardNumber is a u8. This is why kstrtou8 should be
used here.
Signed-off-by: default avatarKurt Kanzenbach <shifty91@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dedbc933
......@@ -702,7 +702,7 @@ int init_ft1000_netdev(struct ft1000_usb *ft1000dev)
int i, ret_val;
struct list_head *cur, *tmp;
char card_nr[2];
unsigned long gCardIndex = 0;
u8 gCardIndex = 0;
DEBUG("Enter init_ft1000_netdev...\n");
......@@ -723,7 +723,7 @@ int init_ft1000_netdev(struct ft1000_usb *ft1000dev)
if (strncmp(netdev->name, "eth", 3) == 0) {
card_nr[0] = netdev->name[3];
card_nr[1] = '\0';
ret_val = strict_strtoul(card_nr, 10, &gCardIndex);
ret_val = kstrtou8(card_nr, 10, &gCardIndex);
if (ret_val) {
printk(KERN_ERR "Can't parse netdev\n");
goto err_net;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment