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
abdd182e
Commit
abdd182e
authored
Oct 24, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/spear' into asoc-next
parents
c5833ddc
25db0dc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
22 deletions
+4
-22
sound/soc/spear/spdif_in.c
sound/soc/spear/spdif_in.c
+2
-10
sound/soc/spear/spdif_out.c
sound/soc/spear/spdif_out.c
+2
-12
No files found.
sound/soc/spear/spdif_in.c
View file @
abdd182e
...
...
@@ -257,20 +257,12 @@ static int spdif_in_probe(struct platform_device *pdev)
return
ret
;
}
return
snd_soc_register_component
(
&
pdev
->
dev
,
&
spdif_in_component
,
&
spdif_in_dai
,
1
);
}
static
int
spdif_in_remove
(
struct
platform_device
*
pdev
)
{
snd_soc_unregister_component
(
&
pdev
->
dev
);
return
0
;
return
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
spdif_in_component
,
&
spdif_in_dai
,
1
);
}
static
struct
platform_driver
spdif_in_driver
=
{
.
probe
=
spdif_in_probe
,
.
remove
=
spdif_in_remove
,
.
driver
=
{
.
name
=
"spdif-in"
,
.
owner
=
THIS_MODULE
,
...
...
sound/soc/spear/spdif_out.c
View file @
abdd182e
...
...
@@ -280,7 +280,6 @@ static int spdif_out_probe(struct platform_device *pdev)
struct
spdif_out_dev
*
host
;
struct
spear_spdif_platform_data
*
pdata
;
struct
resource
*
res
;
int
ret
;
host
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
*
host
),
GFP_KERNEL
);
if
(
!
host
)
{
...
...
@@ -307,16 +306,8 @@ static int spdif_out_probe(struct platform_device *pdev)
dev_set_drvdata
(
&
pdev
->
dev
,
host
);
ret
=
snd_soc_register_component
(
&
pdev
->
dev
,
&
spdif_out_component
,
&
spdif_out_dai
,
1
);
return
ret
;
}
static
int
spdif_out_remove
(
struct
platform_device
*
pdev
)
{
snd_soc_unregister_component
(
&
pdev
->
dev
);
return
0
;
return
devm_snd_soc_register_component
(
&
pdev
->
dev
,
&
spdif_out_component
,
&
spdif_out_dai
,
1
);
}
#ifdef CONFIG_PM
...
...
@@ -357,7 +348,6 @@ static SIMPLE_DEV_PM_OPS(spdif_out_dev_pm_ops, spdif_out_suspend, \
static
struct
platform_driver
spdif_out_driver
=
{
.
probe
=
spdif_out_probe
,
.
remove
=
spdif_out_remove
,
.
driver
=
{
.
name
=
"spdif-out"
,
.
owner
=
THIS_MODULE
,
...
...
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