Staging: SLICOSS: use gfp_kernel where possible
authorLior Dotan <liodot@gmail.com>
Wed, 11 Feb 2009 11:35:10 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:05 +0000 (14:53 -0700)
Use GFP_KERNEL instead of GFP_ATOMIC where possible.

Signed_off-by: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/slicoss/slicoss.c

index ab3f98902a394b3436e80d4ca6f01c0a74447622..0d1189cd5c7d731fee750178d0155a9c754e7165 100644 (file)
@@ -1492,7 +1492,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address)
        }
 
        /* Doesn't already exist.  Allocate a structure to hold it */
-       mcaddr = kmalloc(sizeof(struct mcast_address), GFP_ATOMIC);
+       mcaddr = kmalloc(sizeof(struct mcast_address), GFP_KERNEL);
        if (mcaddr == NULL)
                return 1;
 
@@ -2648,7 +2648,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
 
 #if SLIC_DUMP_ENABLED
        if (!card->dumpbuffer) {
-               card->dumpbuffer = kmalloc(DUMP_PAGE_SIZE, GFP_ATOMIC);
+               card->dumpbuffer = kmalloc(DUMP_PAGE_SIZE, GFP_KERNEL);
 
                ASSERT(card->dumpbuffer);
                if (card->dumpbuffer == NULL)
@@ -2667,7 +2667,7 @@ static int slic_card_init(struct sliccard *card, struct adapter *adapter)
         *  Allocate COMMAND BUFFER
         */
        if (!card->cmdbuffer) {
-               card->cmdbuffer = kmalloc(sizeof(struct dump_cmd), GFP_ATOMIC);
+               card->cmdbuffer = kmalloc(sizeof(struct dump_cmd), GFP_KERNEL);
 
                ASSERT(card->cmdbuffer);
                if (card->cmdbuffer == NULL)
@@ -2808,7 +2808,7 @@ static u32 slic_card_locate(struct adapter *adapter)
        }
        if (!physcard) {
                /* no structure allocated for this physical card yet */
-               physcard = kzalloc(sizeof(struct physcard), GFP_ATOMIC);
+               physcard = kzalloc(sizeof(struct physcard), GFP_KERNEL);
                ASSERT(physcard);
 
                DBG_MSG