From: Frank Mori Hess Date: Mon, 4 Aug 2003 18:56:32 +0000 (+0000) Subject: get_free_page() is gone in 2.6 X-Git-Tag: r0_7_69~288 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0fc80891c2e05553cda30a8f6a5c4fc2521230e9;p=comedi.git get_free_page() is gone in 2.6 --- 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;