mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 16:54:43 +02:00
ubsec_ssb: fix build of ubsec_ssb with new ssb patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22357 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ca8826ce87
commit
89854bcd73
@ -503,7 +503,12 @@ __devinit ubsec_ssb_probe(struct ssb_device *sdev,
|
|||||||
goto err_out_powerdown;
|
goto err_out_powerdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
|
||||||
|
err = dma_set_mask(sdev->dma_dev, DMA_BIT_MASK(32)) ||
|
||||||
|
dma_set_coherent_mask(sdev->dma_dev, DMA_BIT_MASK(32));
|
||||||
|
#else
|
||||||
err = ssb_dma_set_mask(sdev, DMA_32BIT_MASK);
|
err = ssb_dma_set_mask(sdev, DMA_32BIT_MASK);
|
||||||
|
#endif
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(sdev->dev,
|
dev_err(sdev->dev,
|
||||||
"Required 32BIT DMA mask unsupported by the system.\n");
|
"Required 32BIT DMA mask unsupported by the system.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user