[PATCH 3/5 v2] mpc52xx suspend: USB
Sylvain Munaut
tnt at 246tNt.com
Fri Mar 23 22:56:47 EST 2007
Domen Puncer wrote:
> + struct usb_hcd *hcd = dev_get_drvdata(&op->dev);
> + if (machine_is_compatible("generic-mpc5200")) {
> + struct ohci_hcd *ohci = hcd_to_ohci(hcd);
>
>
Not good, what if you have a Ohci PCI card on a 5200 board ...
You somehow need to check the compatible list of the of_node associated
with the particular instance you're putting to sleep.
Sylvain
More information about the Linuxppc-embedded
mailing list