.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * The driver for Freescale MPC512x LocalPlus Bus FIFO |
---|
3 | 4 | * (called SCLPC in the Reference Manual). |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2013-2015 Alexander Popov <alex.popov@linux.com>. |
---|
6 | | - * |
---|
7 | | - * This file is released under the GPLv2. |
---|
8 | 7 | */ |
---|
9 | 8 | |
---|
10 | 9 | #include <linux/interrupt.h> |
---|
.. | .. |
---|
435 | 434 | memset(&lpbfifo, 0, sizeof(struct lpbfifo_data)); |
---|
436 | 435 | spin_lock_init(&lpbfifo.lock); |
---|
437 | 436 | |
---|
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); |
---|
441 | 440 | |
---|
442 | 441 | if (of_address_to_resource(pdev->dev.of_node, 0, &r) != 0) { |
---|
443 | 442 | dev_err(&pdev->dev, "bad 'reg' in 'sclpc' device tree node\n"); |
---|