- struct device * -> device_t

- remove useless parenthesis
This commit is contained in:
cegger 2009-05-01 09:26:34 +00:00
parent 827656cbc1
commit 7298f44f6a

View File

@ -1,4 +1,4 @@
/* $NetBSD: pciide_machdep.c,v 1.8 2008/04/16 16:06:51 cegger Exp $ */
/* $NetBSD: pciide_machdep.c,v 1.9 2009/05/01 09:26:34 cegger Exp $ */
/*
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.8 2008/04/16 16:06:51 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.9 2009/05/01 09:26:34 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -62,7 +62,7 @@ __KERNEL_RCSID(0, "$NetBSD: pciide_machdep.c,v 1.8 2008/04/16 16:06:51 cegger Ex
#endif
void *
pciide_machdep_compat_intr_establish(struct device *dev,
pciide_machdep_compat_intr_establish(device_t dev,
struct pci_attach_args *pa, int chan, int (*func)(void *),
void *arg)
{
@ -75,7 +75,7 @@ pciide_machdep_compat_intr_establish(struct device *dev,
irq = PCIIDE_COMPAT_IRQ(chan);
cookie = isa_intr_establish(NULL, irq, IST_EDGE, IPL_BIO, func, arg);
if (cookie == NULL)
return (NULL);
return NULL;
#if NIOAPIC > 0
if (mp_busses != NULL &&
(intr_find_mpmapping(mp_isa_bus, irq, &mpih) == 0 ||
@ -88,5 +88,5 @@ pciide_machdep_compat_intr_establish(struct device *dev,
#endif
aprint_normal_dev(dev, "%s channel interrupting at irq %d\n",
PCIIDE_CHANNEL_NAME(chan), irq);
return (cookie);
return cookie;
}