net: wan: fix the comments style issue
Block comments use * on subsequent lines. Block comments use a trailing */ on a separate line. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -569,12 +569,14 @@ static int wanxl_pci_init_one(struct pci_dev *pdev,
|
|||||||
return i;
|
return i;
|
||||||
|
|
||||||
/* QUICC can only access first 256 MB of host RAM directly,
|
/* QUICC can only access first 256 MB of host RAM directly,
|
||||||
but PLX9060 DMA does 32-bits for actual packet data transfers */
|
* but PLX9060 DMA does 32-bits for actual packet data transfers
|
||||||
|
*/
|
||||||
|
|
||||||
/* FIXME when PCI/DMA subsystems are fixed.
|
/* FIXME when PCI/DMA subsystems are fixed.
|
||||||
We set both dma_mask and consistent_dma_mask to 28 bits
|
* We set both dma_mask and consistent_dma_mask to 28 bits
|
||||||
and pray pci_alloc_consistent() will use this info. It should
|
* and pray pci_alloc_consistent() will use this info. It should
|
||||||
work on most platforms */
|
* work on most platforms
|
||||||
|
*/
|
||||||
if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(28)) ||
|
if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(28)) ||
|
||||||
dma_set_mask(&pdev->dev, DMA_BIT_MASK(28))) {
|
dma_set_mask(&pdev->dev, DMA_BIT_MASK(28))) {
|
||||||
pr_err("No usable DMA configuration\n");
|
pr_err("No usable DMA configuration\n");
|
||||||
@ -624,8 +626,9 @@ static int wanxl_pci_init_one(struct pci_dev *pdev,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* FIXME when PCI/DMA subsystems are fixed.
|
/* FIXME when PCI/DMA subsystems are fixed.
|
||||||
We set both dma_mask and consistent_dma_mask back to 32 bits
|
* We set both dma_mask and consistent_dma_mask back to 32 bits
|
||||||
to indicate the card can do 32-bit DMA addressing */
|
* to indicate the card can do 32-bit DMA addressing
|
||||||
|
*/
|
||||||
if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)) ||
|
if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)) ||
|
||||||
dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) {
|
dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) {
|
||||||
pr_err("No usable DMA configuration\n");
|
pr_err("No usable DMA configuration\n");
|
||||||
|
Reference in New Issue
Block a user