smsc95xx.c (6c8ff877cdf13cd5287ed9d700cfb6cb70e2bfa1) smsc95xx.c (8bca81d9875c7768c40a19fb439eebaf6cec898d)
1 /***************************************************************************
2 *
3 * Copyright (C) 2007-2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

--- 1656 unchanged lines hidden (view full) ---

1665 if (ret && PMSG_IS_AUTO(message))
1666 usbnet_resume(intf);
1667 return ret;
1668}
1669
1670static int smsc95xx_resume(struct usb_interface *intf)
1671{
1672 struct usbnet *dev = usb_get_intfdata(intf);
1 /***************************************************************************
2 *
3 * Copyright (C) 2007-2008 SMSC
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

--- 1656 unchanged lines hidden (view full) ---

1665 if (ret && PMSG_IS_AUTO(message))
1666 usbnet_resume(intf);
1667 return ret;
1668}
1669
1670static int smsc95xx_resume(struct usb_interface *intf)
1671{
1672 struct usbnet *dev = usb_get_intfdata(intf);
1673 struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]);
1674 u8 suspend_flags = pdata->suspend_flags;
1673 struct smsc95xx_priv *pdata;
1674 u8 suspend_flags;
1675 int ret;
1676 u32 val;
1677
1678 BUG_ON(!dev);
1675 int ret;
1676 u32 val;
1677
1678 BUG_ON(!dev);
1679 pdata = (struct smsc95xx_priv *)(dev->data[0]);
1680 suspend_flags = pdata->suspend_flags;
1679
1680 netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags);
1681
1682 /* do this first to ensure it's cleared even in error case */
1683 pdata->suspend_flags = 0;
1684
1685 if (suspend_flags & SUSPEND_ALLMODES) {
1686 /* clear wake-up sources */

--- 344 unchanged lines hidden ---
1681
1682 netdev_dbg(dev->net, "resume suspend_flags=0x%02x\n", suspend_flags);
1683
1684 /* do this first to ensure it's cleared even in error case */
1685 pdata->suspend_flags = 0;
1686
1687 if (suspend_flags & SUSPEND_ALLMODES) {
1688 /* clear wake-up sources */

--- 344 unchanged lines hidden ---