projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[tools] build flex on the host, some pakcages need it in the newest version
[openwrt.git]
/
package
/
ubsec_ssb
/
src
/
ubsec_ssb.c
diff --git
a/package/ubsec_ssb/src/ubsec_ssb.c
b/package/ubsec_ssb/src/ubsec_ssb.c
index
6994504
..
d6adf59
100644
(file)
--- a/
package/ubsec_ssb/src/ubsec_ssb.c
+++ b/
package/ubsec_ssb/src/ubsec_ssb.c
@@
-1,4
+1,3
@@
-/* $Id: $ */
/*
* Copyright (c) 2008 Daniel Mueller (daniel@danm.de)
/*
* Copyright (c) 2008 Daniel Mueller (daniel@danm.de)
@@
-504,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) {
dev_err(sdev->dev,
"Required 32BIT DMA mask unsupported by the system.\n");
if (err) {
dev_err(sdev->dev,
"Required 32BIT DMA mask unsupported by the system.\n");
This page took
0.022102 seconds
and
4
git commands to generate.