From: Oliver Neukum Date: Sat, 12 Dec 2009 05:43:00 +0000 (-0800) Subject: usb: remove rare pm primitive for conversion to new API X-Git-Tag: v2.6.33-rc1~59^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ceb0c77e573bb208e282ce9af973a07ab79791e2;p=profile%2Fcommon%2Fkernel-common.git 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: Oliver Neukum Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 3b80e8d..f1d64ef 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) return 0; err_out: - usb_autopm_enable(kaweth->intf); + usb_autopm_put_interface(kaweth->intf); return -EIO; } @@ -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; }