Commit ceb0c77e authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

usb: remove rare pm primitive for conversion to new API

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: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 50170656
...@@ -716,7 +716,7 @@ static int kaweth_open(struct net_device *net) ...@@ -716,7 +716,7 @@ static int kaweth_open(struct net_device *net)
return 0; return 0;
err_out: err_out:
usb_autopm_enable(kaweth->intf); usb_autopm_put_interface(kaweth->intf);
return -EIO; return -EIO;
} }
...@@ -753,7 +753,7 @@ static int kaweth_close(struct net_device *net) ...@@ -753,7 +753,7 @@ static int kaweth_close(struct net_device *net)
kaweth->status &= ~KAWETH_STATUS_CLOSING; kaweth->status &= ~KAWETH_STATUS_CLOSING;
usb_autopm_enable(kaweth->intf); usb_autopm_put_interface(kaweth->intf);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment