Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parisc: update outdated comments for renamed ccio_alloc_consistent()

The function ccio_alloc_consistent() was renamed to ccio_alloc() by commit
79387179e2e4 ("parisc: convert to dma_map_ops"). Update the three stale
references in ccio-dma.c.

Also replace the obsolete PCI_DMA_TODEVICE constant name with DMA_TO_DEVICE in
a nearby comment to match the code.

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Kexin Sun and committed by
Helge Deller
0b6c8e21 43cfbdda

+4 -4
+4 -4
drivers/parisc/ccio-dma.c
··· 503 503 504 504 505 505 /* 506 - ** Use direction (ie PCI_DMA_TODEVICE) to pick hint. 507 - ** ccio_alloc_consistent() depends on this to get SAFE_DMA 506 + ** Use direction (ie DMA_TO_DEVICE) to pick hint. 507 + ** ccio_alloc() depends on this to get SAFE_DMA 508 508 ** when it passes in BIDIRECTIONAL flag. 509 509 */ 510 510 static u32 hint_lookup[] = { ··· 865 865 * ccio_free - Free a consistent DMA mapping. 866 866 * @dev: The PCI device. 867 867 * @size: The length of the DMA region. 868 - * @cpu_addr: The cpu address returned from the ccio_alloc_consistent. 869 - * @dma_handle: The device address returned from the ccio_alloc_consistent. 868 + * @cpu_addr: The cpu address returned from ccio_alloc(). 869 + * @dma_handle: The device address returned from ccio_alloc(). 870 870 * @attrs: attributes 871 871 * 872 872 * This function implements the pci_free_consistent function.