aboutsummaryrefslogtreecommitdiffstats
path: root/package/ubsec_ssb/src
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2010-07-22 18:50:32 +0000
committerHauke Mehrtens <hauke@openwrt.org>2010-07-22 18:50:32 +0000
commitd1b13e47235254b77bf90ff6b1b0416e71f86062 (patch)
treeadf0e1e7f42d37c3326a37d902751d100b1582d5 /package/ubsec_ssb/src
parent6f0e2ee88d62b58415c2c8f28ba64b232730e6dc (diff)
downloadupstream-d1b13e47235254b77bf90ff6b1b0416e71f86062.tar.gz
upstream-d1b13e47235254b77bf90ff6b1b0416e71f86062.tar.bz2
upstream-d1b13e47235254b77bf90ff6b1b0416e71f86062.zip
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
Diffstat (limited to 'package/ubsec_ssb/src')
-rw-r--r--package/ubsec_ssb/src/ubsec_ssb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ubsec_ssb/src/ubsec_ssb.c b/package/ubsec_ssb/src/ubsec_ssb.c
index 86f8dadbea..d6adf596dd 100644
--- a/package/ubsec_ssb/src/ubsec_ssb.c
+++ b/package/ubsec_ssb/src/ubsec_ssb.c
@@ -503,7 +503,12 @@ __devinit ubsec_ssb_probe(struct ssb_device *sdev,
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);
+#endif
if (err) {
dev_err(sdev->dev,
"Required 32BIT DMA mask unsupported by the system.\n");