get_free_page() is gone in 2.6
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 18:56:32 +0000 (18:56 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 18:56:32 +0000 (18:56 +0000)
comedi/drivers/dt282x.c

index 79530574aaa70701714c7cdb799ee1c0817faab9..b043852319a378d8f41164203fc01183b137e09a 100644 (file)
@@ -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;