struct mii_if_info mii;
 };
 
-static int ftmac100_alloc_rx_page(struct ftmac100 *priv, struct ftmac100_rxdes *rxdes);
+static int ftmac100_alloc_rx_page(struct ftmac100 *priv,
+                                 struct ftmac100_rxdes *rxdes, gfp_t gfp);
 
 /******************************************************************************
  * internal functions (hardware register access)
        skb->truesize += length;
        __pskb_pull_tail(skb, min(length, 64));
 
-       ftmac100_alloc_rx_page(priv, rxdes);
+       ftmac100_alloc_rx_page(priv, rxdes, GFP_ATOMIC);
 
        ftmac100_rx_pointer_advance(priv);
 
 /******************************************************************************
  * internal functions (buffer)
  *****************************************************************************/
-static int ftmac100_alloc_rx_page(struct ftmac100 *priv, struct ftmac100_rxdes *rxdes)
+static int ftmac100_alloc_rx_page(struct ftmac100 *priv,
+                                 struct ftmac100_rxdes *rxdes, gfp_t gfp)
 {
        struct net_device *netdev = priv->netdev;
        struct page *page;
        dma_addr_t map;
 
-       page = alloc_page(GFP_KERNEL);
+       page = alloc_page(gfp);
        if (!page) {
                if (net_ratelimit())
                        netdev_err(netdev, "failed to allocate rx page\n");
        for (i = 0; i < RX_QUEUE_ENTRIES; i++) {
                struct ftmac100_rxdes *rxdes = &priv->descs->rxdes[i];
 
-               if (ftmac100_alloc_rx_page(priv, rxdes))
+               if (ftmac100_alloc_rx_page(priv, rxdes, GFP_KERNEL))
                        goto err;
        }