Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
// Notes:
//
//---------------------------------------------------------------------------
-u16 reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *intf)
+int reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *intf)
{
struct net_device *netdev;
FT1000_INFO *pInfo;
{
DEBUG("reg_ft1000_netdev: could not register network device\n");
free_netdev(netdev);
- return STATUS_FAILURE;
+ return rc;
}
pInfo->CardReady = 1;
- return STATUS_SUCCESS;
+ return 0;
}
static int ft1000_reset(struct net_device *dev)
DEBUG("ft1000_probe::Card Ready!!!! Registering network device\n");
- reg_ft1000_netdev(ft1000dev, interface);
+ ret = reg_ft1000_netdev(ft1000dev, interface);
+ if (ret)
+ goto err_load;
pft1000info->NetDevRegDone = 1;
int dsp_reload(struct ft1000_device *ft1000dev);
u16 init_ft1000_netdev(struct ft1000_device *ft1000dev);
struct usb_interface;
-u16 reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *intf);
+int reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *intf);
int ft1000_poll(void* dev_id);
void ft1000InitProc(struct net_device *dev);