From 0fc80891c2e05553cda30a8f6a5c4fc2521230e9 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 4 Aug 2003 18:56:32 +0000 Subject: [PATCH] get_free_page() is gone in 2.6 --- comedi/drivers/dt282x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index 79530574..b0438523 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -1370,8 +1370,8 @@ static int dt282x_grab_dma(comedi_device *dev,int dma1,int dma2) devpriv->dma[1].chan=dma2; devpriv->dma_maxsize = PAGE_SIZE; - devpriv->dma[0].buf = (void *) get_free_page(GFP_KERNEL | GFP_DMA); - devpriv->dma[1].buf = (void *) get_free_page(GFP_KERNEL | GFP_DMA); + devpriv->dma[0].buf = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); + devpriv->dma[1].buf = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); if (!devpriv->dma[0].buf || !devpriv->dma[1].buf) { printk(" can't get DMA memory"); return -ENOMEM; -- 2.26.2