Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220367
b: refs/heads/master
c: aaf0885
h: refs/heads/master
i:
  220365: ac161ca
  220363: 7ef0cc3
  220359: 492804d
  220351: 2637c13
v: v3
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Oct 15, 2010
1 parent 3549465 commit a8226f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78890fdb24e2f61c22a9bf75270e14018bff83c5
refs/heads/master: aaf0885c30449d7b40d7cb5b07d6ff64b419c0d1
6 changes: 3 additions & 3 deletions trunk/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ u16 init_ft1000_netdev(struct ft1000_device *ft1000dev)
// 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;
Expand All @@ -1124,7 +1124,7 @@ u16 reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *int
{
DEBUG("reg_ft1000_netdev: could not register network device\n");
free_netdev(netdev);
return STATUS_FAILURE;
return rc;
}


Expand All @@ -1149,7 +1149,7 @@ u16 reg_ft1000_netdev(struct ft1000_device *ft1000dev, struct usb_interface *int
pInfo->CardReady = 1;


return STATUS_SUCCESS;
return 0;
}

static int ft1000_reset(struct net_device *dev)
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ static int ft1000_probe(struct usb_interface *interface,

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;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ft1000/ft1000-usb/ft1000_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ char *getfw (char *fn, size_t *pimgsz);
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);
Expand Down

0 comments on commit a8226f0

Please sign in to comment.