treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / async_tx.h
bloba14758426dd501da9cd7caac7fd18fec9ac7135d
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2008-2009 DENX Software Engineering.
5 * Author: Yuri Tikhonov <yur@emcraft.com>
6 */
7 #ifndef _ASM_POWERPC_ASYNC_TX_H_
8 #define _ASM_POWERPC_ASYNC_TX_H_
10 #if defined(CONFIG_440SPe) || defined(CONFIG_440SP)
11 extern struct dma_chan *
12 ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap,
13 struct page **dst_lst, int dst_cnt, struct page **src_lst,
14 int src_cnt, size_t src_sz);
16 #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \
17 src_cnt, src_sz) \
18 ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \
19 src_cnt, src_sz)
20 #else
22 #define async_tx_find_channel(dep, type, dst, dst_count, src, src_count, len) \
23 __async_tx_find_channel(dep, type)
25 struct dma_chan *
26 __async_tx_find_channel(struct async_submit_ctl *submit,
27 enum dma_transaction_type tx_type);
29 #endif
31 #endif