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
62ddae37
Commit
62ddae37
authored
Jan 06, 2016
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/ste' into for-linus
parents
a6eaf23b
aeb8974a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
45 deletions
+42
-45
drivers/dma/ste_dma40.c
drivers/dma/ste_dma40.c
+42
-45
No files found.
drivers/dma/ste_dma40.c
View file @
62ddae37
...
...
@@ -3543,8 +3543,8 @@ static int __init d40_probe(struct platform_device *pdev)
struct
stedma40_platform_data
*
plat_data
=
dev_get_platdata
(
&
pdev
->
dev
);
struct
device_node
*
np
=
pdev
->
dev
.
of_node
;
int
ret
=
-
ENOENT
;
struct
d40_base
*
base
=
NULL
;
struct
resource
*
res
=
NULL
;
struct
d40_base
*
base
;
struct
resource
*
res
;
int
num_reserved_chans
;
u32
val
;
...
...
@@ -3552,17 +3552,17 @@ static int __init d40_probe(struct platform_device *pdev)
if
(
np
)
{
if
(
d40_of_probe
(
pdev
,
np
))
{
ret
=
-
ENOMEM
;
goto
failure
;
goto
report_
failure
;
}
}
else
{
d40_err
(
&
pdev
->
dev
,
"No pdata or Device Tree provided
\n
"
);
goto
failure
;
goto
report_
failure
;
}
}
base
=
d40_hw_detect_init
(
pdev
);
if
(
!
base
)
goto
failure
;
goto
report_
failure
;
num_reserved_chans
=
d40_phy_res_init
(
base
);
...
...
@@ -3693,8 +3693,6 @@ static int __init d40_probe(struct platform_device *pdev)
return
0
;
failure:
if
(
base
)
{
if
(
base
->
desc_slab
)
kmem_cache_destroy
(
base
->
desc_slab
);
if
(
base
->
virtbase
)
iounmap
(
base
->
virtbase
);
...
...
@@ -3736,8 +3734,7 @@ static int __init d40_probe(struct platform_device *pdev)
kfree
(
base
->
lookup_phy_chans
);
kfree
(
base
->
phy_res
);
kfree
(
base
);
}
report_failure:
d40_err
(
&
pdev
->
dev
,
"probe failed
\n
"
);
return
ret
;
}
...
...
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