diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-30 18:13:46 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-30 18:13:46 +0000 |
commit | 2eb4bfa9c3eb61bfc01b98b32509b896f5658421 (patch) | |
tree | f181e904486d0a1e74d0e2b6188ac8be41e075e7 /sys/dev | |
parent | f8c5f346273aca4f6c3888571e022aaad9ce17bc (diff) |
MALLOC/FREE -> malloc/free
These are the latest ones needed to build a kernel (on amd64)
without the MALLOC/FREE definitions in src/sys/sys/malloc.h
ok krw@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/sdhc_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/sdhc_pci.c b/sys/dev/pci/sdhc_pci.c index 46a7ebe66f0..0e04a2baf51 100644 --- a/sys/dev/pci/sdhc_pci.c +++ b/sys/dev/pci/sdhc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc_pci.c,v 1.6 2007/09/06 08:01:01 jsg Exp $ */ +/* $OpenBSD: sdhc_pci.c,v 1.7 2007/10/30 18:13:45 chl Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -115,8 +115,8 @@ sdhc_pci_attach(struct device *parent, struct device *self, void *aux) nslots = SDHC_PCI_NUM_SLOTS(slotinfo); /* Allocate an array big enough to hold all the possible hosts */ - MALLOC(sc->sc.sc_host, struct sdhc_host **, - sizeof(struct sdhc_host *) * nslots, M_DEVBUF, M_WAITOK); + sc->sc.sc_host = malloc(sizeof(struct sdhc_host *) * nslots, M_DEVBUF, + M_WAITOK); /* XXX: handle 64-bit BARs */ for (reg = SDHC_PCI_BAR_START + SDHC_PCI_FIRST_BAR(slotinfo) * |