hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/ata/sata_fsl.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * drivers/ata/sata_fsl.c
34 *
....@@ -7,12 +8,6 @@
78 * Li Yang <leoli@freescale.com>
89 *
910 * Copyright (c) 2006-2007, 2011-2012 Freescale Semiconductor, Inc.
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License as published by the
13
- * Free Software Foundation; either version 2 of the License, or (at your
14
- * option) any later version.
15
- *
1611 */
1712
1813 #include <linux/kernel.h>
....@@ -731,8 +726,8 @@
731726 if (!pp)
732727 return -ENOMEM;
733728
734
- mem = dma_zalloc_coherent(dev, SATA_FSL_PORT_PRIV_DMA_SZ, &mem_dma,
735
- GFP_KERNEL);
729
+ mem = dma_alloc_coherent(dev, SATA_FSL_PORT_PRIV_DMA_SZ, &mem_dma,
730
+ GFP_KERNEL);
736731 if (!mem) {
737732 kfree(pp);
738733 return -ENOMEM;