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
7daf390b
Commit
7daf390b
authored
Jun 17, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm0010' into asoc-next
parents
458bcee9
fd8b9657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sound/soc/codecs/wm0010.c
sound/soc/codecs/wm0010.c
+10
-0
No files found.
sound/soc/codecs/wm0010.c
View file @
7daf390b
...
...
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/interrupt.h>
#include <linux/irqreturn.h>
#include <linux/init.h>
#include <linux/spi/spi.h>
...
...
@@ -972,6 +973,13 @@ static int wm0010_spi_probe(struct spi_device *spi)
}
wm0010
->
irq
=
irq
;
ret
=
irq_set_irq_wake
(
irq
,
1
);
if
(
ret
)
{
dev_err
(
wm0010
->
dev
,
"Failed to set IRQ %d as wake source: %d
\n
"
,
irq
,
ret
);
return
ret
;
}
if
(
spi
->
max_speed_hz
)
wm0010
->
board_max_spi_speed
=
spi
->
max_speed_hz
;
else
...
...
@@ -995,6 +1003,8 @@ static int wm0010_spi_remove(struct spi_device *spi)
gpio_set_value_cansleep
(
wm0010
->
gpio_reset
,
wm0010
->
gpio_reset_value
);
irq_set_irq_wake
(
wm0010
->
irq
,
0
);
if
(
wm0010
->
irq
)
free_irq
(
wm0010
->
irq
,
wm0010
);
...
...
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