usb: remove rare pm primitive for conversion to new API
authorOliver Neukum <oliver@neukum.org>
Sat, 12 Dec 2009 05:43:00 +0000 (21:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2009 05:43:00 +0000 (21:43 -0800)
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 <oliver@neukum.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kaweth.c

index 3b80e8d2d621fd235408d91bd0cd236eb45eb23f..f1d64ef67efad9174122f6832b7e5b11fa892c3f 100644 (file)
@@ -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;
 }