staging: speakup: use speakup_allocate as per required context
authorPranay Kr. Srivastava <pranjas@gmail.com>
Fri, 24 Mar 2017 08:37:11 +0000 (14:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Mar 2017 11:51:32 +0000 (13:51 +0200)
commitb1b2b3ca78757c3162d1dde283117c778133a276
tree7cb55cab174bd3db4d0fd0a7b6e00a96fdc97577
parenta15505e69cd2f8d0ebf566cd5c5838bd5c2d56e3
staging: speakup: use speakup_allocate as per required context

speakup_allocate used GFP_ATOMIC for allocations
even while during initialization due to it's use
in notifier call.

Pass GFP_ flags as well to speakup_allocate depending
on the context it is called in.

Signed-off-by: Pranay Kr. Srivastava <pranjas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c