From 2eb4bfa9c3eb61bfc01b98b32509b896f5658421 Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Tue, 30 Oct 2007 18:13:46 +0000 Subject: 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@ --- sys/dev/pci/sdhc_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 @@ -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) * -- cgit v1.2.3