diff options
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/kaweth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 3b80e8d2d621..f1d64ef67efa 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -716,7 +716,7 @@ static int kaweth_open(struct net_device *net) | |||
716 | return 0; | 716 | return 0; |
717 | 717 | ||
718 | err_out: | 718 | err_out: |
719 | usb_autopm_enable(kaweth->intf); | 719 | usb_autopm_put_interface(kaweth->intf); |
720 | return -EIO; | 720 | return -EIO; |
721 | } | 721 | } |
722 | 722 | ||
@@ -753,7 +753,7 @@ static int kaweth_close(struct net_device *net) | |||
753 | 753 | ||
754 | kaweth->status &= ~KAWETH_STATUS_CLOSING; | 754 | kaweth->status &= ~KAWETH_STATUS_CLOSING; |
755 | 755 | ||
756 | usb_autopm_enable(kaweth->intf); | 756 | usb_autopm_put_interface(kaweth->intf); |
757 | 757 | ||
758 | return 0; | 758 | return 0; |
759 | } | 759 | } |