forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/lantiq/xway/vmmc.c
....@@ -1,7 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify it
3
- * under the terms of the GNU General Public License version 2 as published
4
- * by the Free Software Foundation.
53 *
64 * Copyright (C) 2012 John Crispin <john@phrozen.org>
75 */
....@@ -31,8 +29,8 @@
3129 dma_addr_t dma;
3230
3331 cp1_base =
34
- (void *) CPHYSADDR(dma_alloc_coherent(NULL, CP1_SIZE,
35
- &dma, GFP_ATOMIC));
32
+ (void *) CPHYSADDR(dma_alloc_coherent(&pdev->dev, CP1_SIZE,
33
+ &dma, GFP_KERNEL));
3634
3735 gpio_count = of_gpio_count(pdev->dev.of_node);
3836 while (gpio_count > 0) {