lkml.org 
[lkml]   [2009]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kaweth: Replace runtime power management primitives

* David Miller <davem@davemloft.net> wrote:

> From: Ingo Molnar <mingo@elte.hu>
> Date: Sat, 12 Dec 2009 07:59:23 +0100
>
> >
> > FYI, there's a new build breakage on latest upstream, on allyesconfig
> > x86:
> >
> > drivers/net/usb/kaweth.c: In function kaweth_open:
> > drivers/net/usb/kaweth.c:719: error: implicit declaration of function usb_autopm_enable
> >
> > The problem appears to be that usb_autopm_enable() is obsolete and got
> > eliminated recently via:
>
> I posted about this a few hours ago, it's been resolved and a fix
> is in net-2.6 and will be pushed out soon.

thanks, i found the patch on netdev - attached below, should anyone only
subscribed to lkml run into this problem.

Ingo

-------------------->
From cf549e36d31c8f12da1fe9aaa44702b60d967aac Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oliver@neukum.org>
Date: Wed, 19 Aug 2009 21:35:01 +0200
Subject: [PATCH] kaweth: Replace runtime power management primitives

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>
Cc: Alan Stern <stern@rowland.harvard.edu>
LKML-Reference: <200908192135.01422.oliver@neukum.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
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 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;
}

\
 
 \ /
  Last update: 2009-12-12 08:19    [W:0.091 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site