wlcore: use GFP_KERNEL together with GFP_DMA
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / ti / wlcore / boot.c
index 3a2207db540523d34213de0f82c0bcfdae0ac4dd..eb204ba979350fabbcfcec6189ffd232d36ba498 100644 (file)
@@ -72,7 +72,7 @@ static int wlcore_boot_fw_version(struct wl1271 *wl)
        struct wl1271_static_data *static_data;
        int ret;
 
-       static_data = kmalloc(sizeof(*static_data), GFP_DMA);
+       static_data = kmalloc(sizeof(*static_data), GFP_KERNEL | GFP_DMA);
        if (!static_data) {
                wl1271_error("Couldn't allocate memory for static data!");
                return -ENOMEM;