Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c26bc60
Commit
4c26bc60
authored
Sep 25, 2012
by
Vinod Koul
Committed by
Vinod Koul
Jan 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
of: dma- fix build break for !CONFIG_OF
Signed-off-by:
Vinod Koul
<
vinod.koul@linux.intel.com
>
parent
aa3da644
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
include/linux/of_dma.h
include/linux/of_dma.h
+27
-0
No files found.
include/linux/of_dma.h
View file @
4c26bc60
...
@@ -32,6 +32,7 @@ struct of_dma_filter_info {
...
@@ -32,6 +32,7 @@ struct of_dma_filter_info {
dma_filter_fn
filter_fn
;
dma_filter_fn
filter_fn
;
};
};
#ifdef CONFIG_OF
extern
int
of_dma_controller_register
(
struct
device_node
*
np
,
extern
int
of_dma_controller_register
(
struct
device_node
*
np
,
struct
dma_chan
*
(
*
of_dma_xlate
)
struct
dma_chan
*
(
*
of_dma_xlate
)
(
struct
of_phandle_args
*
,
struct
of_dma
*
),
(
struct
of_phandle_args
*
,
struct
of_dma
*
),
...
@@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
...
@@ -41,5 +42,31 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
char
*
name
);
char
*
name
);
extern
struct
dma_chan
*
of_dma_simple_xlate
(
struct
of_phandle_args
*
dma_spec
,
extern
struct
dma_chan
*
of_dma_simple_xlate
(
struct
of_phandle_args
*
dma_spec
,
struct
of_dma
*
ofdma
);
struct
of_dma
*
ofdma
);
#else
static
int
of_dma_controller_register
(
struct
device_node
*
np
,
struct
dma_chan
*
(
*
of_dma_xlate
)
(
struct
of_phandle_args
*
,
struct
of_dma
*
),
void
*
data
)
{
return
-
ENODEV
;
}
static
void
of_dma_controller_free
(
struct
device_node
*
np
)
{
}
static
struct
dma_chan
*
of_dma_request_slave_channel
(
struct
device_node
*
np
,
char
*
name
)
{
return
NULL
;
}
static
struct
dma_chan
*
of_dma_simple_xlate
(
struct
of_phandle_args
*
dma_spec
,
struct
of_dma
*
ofdma
)
{
return
NULL
;
}
#endif
#endif
/* __LINUX_OF_DMA_H */
#endif
/* __LINUX_OF_DMA_H */
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