Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139824
b: refs/heads/master
c: 0de8ca5
h: refs/heads/master
v: v3
  • Loading branch information
Jan Dumon authored and David S. Miller committed Apr 2, 2009
1 parent 368c72e commit 33d9a6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 3b7d2b319db0ba1f6208ca58b297fb419301f85a
refs/heads/master: 0de8ca597d7b449e9e7ce7af138944acf06c8f05
10 changes: 6 additions & 4 deletions trunk/drivers/net/usb/hso.c
Original file line number Diff line number Diff line change
Expand Up @@ -2536,14 +2536,15 @@ static void hso_create_rfkill(struct hso_device *hso_dev,
}

/* Creates our network device */
static struct hso_device *hso_create_net_device(struct usb_interface *interface)
static struct hso_device *hso_create_net_device(struct usb_interface *interface,
int port_spec)
{
int result, i;
struct net_device *net;
struct hso_net *hso_net;
struct hso_device *hso_dev;

hso_dev = hso_create_device(interface, HSO_INTF_MUX | HSO_PORT_NETWORK);
hso_dev = hso_create_device(interface, port_spec);
if (!hso_dev)
return NULL;

Expand Down Expand Up @@ -2943,7 +2944,8 @@ static int hso_probe(struct usb_interface *interface,
if ((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK) {
/* Create the network device */
if (!disable_net) {
hso_dev = hso_create_net_device(interface);
hso_dev = hso_create_net_device(interface,
port_spec);
if (!hso_dev)
goto exit;
tmp_dev = hso_dev;
Expand Down Expand Up @@ -2975,7 +2977,7 @@ static int hso_probe(struct usb_interface *interface,
/* It's a regular bulk interface */
if (((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK)
&& !disable_net)
hso_dev = hso_create_net_device(interface);
hso_dev = hso_create_net_device(interface, port_spec);
else
hso_dev =
hso_create_bulk_serial_device(interface, port_spec);
Expand Down

0 comments on commit 33d9a6a

Please sign in to comment.