lkml.org 
[lkml]   [2005]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] fix tulip suspend/resume
From
Date
> pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state)
> {
> if (!pci_find_capability(dev, PCI_CAP_ID_PM))
> return PCI_D0;
>
> switch (state) {
> case 0: return PCI_D0;
> case 3: return PCI_D3hot;
> default:
> printk("They asked me for state %d\n", state);
> BUG();
> }
> return PCI_D0;
> }

Gack ! I need to remember to fix that one before I change PMSG_FREEZE
definition to be different than PMSG_SUSPEND upstream.

Pavel, do you know that there are other ways to deal with errors than
just BUG()'ing all over the place ? :)

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-08 02:34    [W:0.116 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site