problem in kernel-2.4.6.pre6
Harald Welte
laforge at gnumonks.org
Sun Jul 1 14:11:46 EST 2001
On Sat, Jun 30, 2001 at 09:21:51AM +0900, Kaoru Fukui wrote:
>
> Hi!
>
> I have had compilation problem in kernel-2.4.6.pre6-devel also standard.
> The error is
>
> usb-ohci.c: Infunction 'ohci_sleep_notify'
> usb-ohci.c:2752 too few argments to function 'ohci_pci_supend'
>
>
> ochi_pci_suspend (strct pci_dev *dev, u32 state){
> <snip>
> }
>
> static int ohci_sleep_notify(struct pmu_sleep_notifier * self, int when){
> <snip>
> case PBOOK_SLEEP_NOW:
> ohci_pci_suspend(ohci->ohci_dev); <--- it's worng
> <snip>
>
> }
please see the attached "fix". As the u32 state argument is nowhere used in
ohci_pci_suspend, I think it's save to remove it.
> Kaoru
--
Live long and prosper
- Harald Welte / laforge at gnumonks.org http://www.gnumonks.org/
-------------- next part --------------
--- linuxppc-300601/drivers/usb/usb-ohci.c.old Sun Jul 1 05:04:38 2001
+++ linuxppc-300601/drivers/usb/usb-ohci.c Sun Jul 1 05:04:48 2001
@@ -2586,7 +2586,7 @@
/*-------------------------------------------------------------------------*/
static int
-ohci_pci_suspend (struct pci_dev *dev, u32 state)
+ohci_pci_suspend (struct pci_dev *dev)
{
ohci_t *ohci = (ohci_t *) dev->driver_data;
More information about the Linuxppc-dev
mailing list