Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
4c55a101
Commit
4c55a101
authored
Jul 23, 2013
by
Tomasz Wlostowski
Committed by
Tomasz Wlostowski
Jul 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ft-spec.c: version check to have same code compiling under 2.6 and 3.x kernels
parent
3c2d0e1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ft-spec.c
kernel/ft-spec.c
+4
-0
No files found.
kernel/ft-spec.c
View file @
4c55a101
...
...
@@ -78,7 +78,11 @@ static int ft_spec_copy_timestamps(struct fmctdc_dev *ft, int base_addr,
cspec
->
dma_addr
=
dma_map_single
(
ft
->
fmc
->
hwdev
,
(
char
*
)
dst
,
size
,
DMA_FROM_DEVICE
);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
if
(
dma_mapping_error
(
cspec
->
dma_addr
))
{
#else
if
(
dma_mapping_error
(
ft
->
fmc
->
hwdev
,
cspec
->
dma_addr
))
{
#endif
dev_err
(
&
ft
->
fmc
->
dev
,
"dma_map_single failed
\n
"
);
return
-
ENOMEM
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment