diff options
author | Mark Hounschell <markh@compro.net> | 2014-05-23 14:02:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-24 04:40:53 +0900 |
commit | 244a0341d2804f788b4341eb860861899394d6db (patch) | |
tree | 8d0b10b8035a243abc7a5fc0e8f7a212c863ddee /drivers/staging/dgap | |
parent | 0c24b2325598326cc7af3e93266ebe232c629fe4 (diff) |
staging: dgap: Change GFP_ATOMICs to GFP_KERNEL
We don't need to use GFP_ATOMIC at driver load time
so use GFP_KERNEL instead.
Signed-off-by: Mark Hounschell <markh@compro.net>
Tested-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index a89606e1fda9..ca264f950f9c 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -1378,7 +1378,7 @@ static int dgap_tty_init(struct board_t *brd) for (i = 0; i < brd->nasync; i++) { if (!brd->channels[i]) { brd->channels[i] = - kzalloc(sizeof(struct channel_t), GFP_ATOMIC); + kzalloc(sizeof(struct channel_t), GFP_KERNEL); if (!brd->channels[i]) return -ENOMEM; } @@ -4121,11 +4121,11 @@ static int dgap_after_config_loaded(int board) /* * allocate flip buffer for board. */ - dgap_board[board]->flipbuf = kmalloc(MYFLIPLEN, GFP_ATOMIC); + dgap_board[board]->flipbuf = kmalloc(MYFLIPLEN, GFP_KERNEL); if (!dgap_board[board]->flipbuf) return -ENOMEM; - dgap_board[board]->flipflagbuf = kmalloc(MYFLIPLEN, GFP_ATOMIC); + dgap_board[board]->flipflagbuf = kmalloc(MYFLIPLEN, GFP_KERNEL); if (!dgap_board[board]->flipflagbuf) { kfree(dgap_board[board]->flipbuf); return -ENOMEM; @@ -7232,7 +7232,7 @@ static struct cnode *dgap_newnode(int t) { struct cnode *n; - n = kmalloc(sizeof(struct cnode), GFP_ATOMIC); + n = kmalloc(sizeof(struct cnode), GFP_KERNEL); if (n) { memset((char *)n, 0, sizeof(struct cnode)); n->type = t; |