@@ -694,7 +694,7 @@ pdc_receive(struct pdc_state *pdcs)
694694 * pdc_tx_list_sg_add() - Add the buffers in a scatterlist to the transmit
695695 * descriptors for a given SPU. The scatterlist buffers contain the data for a
696696 * SPU request message.
697- * @spu_idx : The index of the SPU to submit the request to, [0, max_spu)
697+ * @pdcs : PDC state for the SPU that will process this request
698698 * @sg: Scatterlist whose buffers contain part of the SPU request
699699 *
700700 * If a scatterlist buffer is larger than PDC_DMA_BUF_MAX, multiple descriptors
@@ -861,7 +861,7 @@ static int pdc_rx_list_init(struct pdc_state *pdcs, struct scatterlist *dst_sg,
861861 * pdc_rx_list_sg_add() - Add the buffers in a scatterlist to the receive
862862 * descriptors for a given SPU. The caller must have already DMA mapped the
863863 * scatterlist.
864- * @spu_idx : Indicates which SPU the buffers are for
864+ * @pdcs : PDC state for the SPU that will process this request
865865 * @sg: Scatterlist whose buffers are added to the receive ring
866866 *
867867 * If a receive buffer in the scatterlist is larger than PDC_DMA_BUF_MAX,
@@ -960,7 +960,7 @@ static irqreturn_t pdc_irq_handler(int irq, void *data)
960960/**
961961 * pdc_tasklet_cb() - Tasklet callback that runs the deferred processing after
962962 * a DMA receive interrupt. Reenables the receive interrupt.
963- * @data: PDC state structure
963+ * @t: Pointer to the Altera sSGDMA channel structure
964964 */
965965static void pdc_tasklet_cb (struct tasklet_struct * t )
966966{
@@ -1566,19 +1566,13 @@ static int pdc_probe(struct platform_device *pdev)
15661566 if (err )
15671567 goto cleanup_ring_pool ;
15681568
1569- pdc_regs = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
1570- if (!pdc_regs ) {
1571- err = - ENODEV ;
1572- goto cleanup_ring_pool ;
1573- }
1574- dev_dbg (dev , "PDC register region res.start = %pa, res.end = %pa" ,
1575- & pdc_regs -> start , & pdc_regs -> end );
1576-
1577- pdcs -> pdc_reg_vbase = devm_ioremap_resource (& pdev -> dev , pdc_regs );
1569+ pdcs -> pdc_reg_vbase = devm_platform_get_and_ioremap_resource (pdev , 0 , & pdc_regs );
15781570 if (IS_ERR (pdcs -> pdc_reg_vbase )) {
15791571 err = PTR_ERR (pdcs -> pdc_reg_vbase );
15801572 goto cleanup_ring_pool ;
15811573 }
1574+ dev_dbg (dev , "PDC register region res.start = %pa, res.end = %pa" ,
1575+ & pdc_regs -> start , & pdc_regs -> end );
15821576
15831577 /* create rx buffer pool after dt read to know how big buffers are */
15841578 err = pdc_rx_buf_pool_create (pdcs );
0 commit comments