hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * The driver for Freescale MPC512x LocalPlus Bus FIFO
34 * (called SCLPC in the Reference Manual).
45 *
56 * Copyright (C) 2013-2015 Alexander Popov <alex.popov@linux.com>.
6
- *
7
- * This file is released under the GPLv2.
87 */
98
109 #include <linux/interrupt.h>
....@@ -435,9 +434,9 @@
435434 memset(&lpbfifo, 0, sizeof(struct lpbfifo_data));
436435 spin_lock_init(&lpbfifo.lock);
437436
438
- lpbfifo.chan = dma_request_slave_channel(&pdev->dev, "rx-tx");
439
- if (lpbfifo.chan == NULL)
440
- return -EPROBE_DEFER;
437
+ lpbfifo.chan = dma_request_chan(&pdev->dev, "rx-tx");
438
+ if (IS_ERR(lpbfifo.chan))
439
+ return PTR_ERR(lpbfifo.chan);
441440
442441 if (of_address_to_resource(pdev->dev.of_node, 0, &r) != 0) {
443442 dev_err(&pdev->dev, "bad 'reg' in 'sclpc' device tree node\n");