* David Miller <davem@xxxxxxxxxxxxx> wrote: > From: Ingo Molnar <mingo@xxxxxxx> > 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@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> LKML-Reference: <200908192135.01422.oliver@xxxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- 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; } -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html