macsonic: Set platform device coherent_dma_mask
PATCH 1/1 macsonic: Set platform device coherent_dma_mask
Set the device's coherent_dma_mask to avoid a WARNING splat. Please see commit 205e1b7f51e4 ("dma-mapping: warn when there is no coherent_dma_mask").
Signed-off-by Finn Thain <[email protected]>
--- drivers/net/ethernet/natsemi/macsonic.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/natsemi/macsonic.c +4 -0
@@ -523,6 +523,10 @@ static int mac_sonic_platform_probe(struct platform_device *pdev)struct sonic_local *lp;int err; + err =dma_coerce_mask_and_coherent (&pdev->dev,DMA_BIT_MASK (32 )); +if (err) +return err; + dev =alloc_etherdev (sizeof (struct sonic_local ));if (!dev)return -ENOMEM ;
Signature · 1 line
2.16.1