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
nexedi
linux
Commits
b2772934
Commit
b2772934
authored
Jun 17, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/88pm860x' into asoc-next
parents
c38a881e
b1d9e66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
sound/soc/codecs/88pm860x-codec.c
sound/soc/codecs/88pm860x-codec.c
+2
-7
No files found.
sound/soc/codecs/88pm860x-codec.c
View file @
b2772934
...
...
@@ -1444,7 +1444,7 @@ static int pm860x_codec_probe(struct platform_device *pdev)
res
=
platform_get_resource
(
pdev
,
IORESOURCE_IRQ
,
i
);
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"Failed to get IRQ resources
\n
"
);
goto
out
;
return
-
EINVAL
;
}
pm860x
->
irq
[
i
]
=
res
->
start
+
chip
->
irq_base
;
strncpy
(
pm860x
->
name
[
i
],
res
->
name
,
MAX_NAME_LEN
);
...
...
@@ -1454,19 +1454,14 @@ static int pm860x_codec_probe(struct platform_device *pdev)
pm860x_dai
,
ARRAY_SIZE
(
pm860x_dai
));
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"Failed to register codec
\n
"
);
goto
out
;
return
-
EINVAL
;
}
return
ret
;
out:
platform_set_drvdata
(
pdev
,
NULL
);
return
-
EINVAL
;
}
static
int
pm860x_codec_remove
(
struct
platform_device
*
pdev
)
{
snd_soc_unregister_codec
(
&
pdev
->
dev
);
platform_set_drvdata
(
pdev
,
NULL
);
return
0
;
}
...
...
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