Skip to content

Commit

Permalink
usb: remove rare pm primitive for conversion to new API
Browse files Browse the repository at this point in the history
This patch removes a rare use of the USB power management API which
won't be supported after the conversion to the new generic runtime power
management framework. Functionality is not altered.

Signed-off-by: Oliver Neukum <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Oliver Neukum authored and davem330 committed Dec 12, 2009
1 parent 5017065 commit ceb0c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ static int kaweth_open(struct net_device *net)
return 0;

err_out:
usb_autopm_enable(kaweth->intf);
usb_autopm_put_interface(kaweth->intf);
return -EIO;
}

Expand Down Expand Up @@ -753,7 +753,7 @@ static int kaweth_close(struct net_device *net)

kaweth->status &= ~KAWETH_STATUS_CLOSING;

usb_autopm_enable(kaweth->intf);
usb_autopm_put_interface(kaweth->intf);

return 0;
}
Expand Down

0 comments on commit ceb0c77

Please sign in to comment.