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
6f5716a2
Commit
6f5716a2
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8993' into asoc-next
parents
58f4f795
6dff9b3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
sound/soc/codecs/wm8993.c
sound/soc/codecs/wm8993.c
+4
-10
No files found.
sound/soc/codecs/wm8993.c
View file @
6f5716a2
...
@@ -1660,7 +1660,7 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
...
@@ -1660,7 +1660,7 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
wm8993
->
dev
=
&
i2c
->
dev
;
wm8993
->
dev
=
&
i2c
->
dev
;
init_completion
(
&
wm8993
->
fll_lock
);
init_completion
(
&
wm8993
->
fll_lock
);
wm8993
->
regmap
=
regmap_init_i2c
(
i2c
,
&
wm8993_regmap
);
wm8993
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
wm8993_regmap
);
if
(
IS_ERR
(
wm8993
->
regmap
))
{
if
(
IS_ERR
(
wm8993
->
regmap
))
{
ret
=
PTR_ERR
(
wm8993
->
regmap
);
ret
=
PTR_ERR
(
wm8993
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to allocate regmap: %d
\n
"
,
ret
);
dev_err
(
&
i2c
->
dev
,
"Failed to allocate regmap: %d
\n
"
,
ret
);
...
@@ -1672,18 +1672,18 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
...
@@ -1672,18 +1672,18 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
wm8993
->
supplies
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
wm8993
->
supplies
);
i
++
)
wm8993
->
supplies
[
i
].
supply
=
wm8993_supply_names
[
i
];
wm8993
->
supplies
[
i
].
supply
=
wm8993_supply_names
[
i
];
ret
=
regulator_bulk_get
(
&
i2c
->
dev
,
ARRAY_SIZE
(
wm8993
->
supplies
),
ret
=
devm_
regulator_bulk_get
(
&
i2c
->
dev
,
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
wm8993
->
supplies
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
dev_err
(
&
i2c
->
dev
,
"Failed to request supplies: %d
\n
"
,
ret
);
dev_err
(
&
i2c
->
dev
,
"Failed to request supplies: %d
\n
"
,
ret
);
goto
err
;
return
ret
;
}
}
ret
=
regulator_bulk_enable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
ret
=
regulator_bulk_enable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
wm8993
->
supplies
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
dev_err
(
&
i2c
->
dev
,
"Failed to enable supplies: %d
\n
"
,
ret
);
dev_err
(
&
i2c
->
dev
,
"Failed to enable supplies: %d
\n
"
,
ret
);
goto
err_g
et
;
return
r
et
;
}
}
ret
=
regmap_read
(
wm8993
->
regmap
,
WM8993_SOFTWARE_RESET
,
&
reg
);
ret
=
regmap_read
(
wm8993
->
regmap
,
WM8993_SOFTWARE_RESET
,
&
reg
);
...
@@ -1742,10 +1742,6 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
...
@@ -1742,10 +1742,6 @@ static __devinit int wm8993_i2c_probe(struct i2c_client *i2c,
free_irq
(
i2c
->
irq
,
wm8993
);
free_irq
(
i2c
->
irq
,
wm8993
);
err_enable:
err_enable:
regulator_bulk_disable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
regulator_bulk_disable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
err_get:
regulator_bulk_free
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
err:
regmap_exit
(
wm8993
->
regmap
);
return
ret
;
return
ret
;
}
}
...
@@ -1756,9 +1752,7 @@ static __devexit int wm8993_i2c_remove(struct i2c_client *i2c)
...
@@ -1756,9 +1752,7 @@ static __devexit int wm8993_i2c_remove(struct i2c_client *i2c)
snd_soc_unregister_codec
(
&
i2c
->
dev
);
snd_soc_unregister_codec
(
&
i2c
->
dev
);
if
(
i2c
->
irq
)
if
(
i2c
->
irq
)
free_irq
(
i2c
->
irq
,
wm8993
);
free_irq
(
i2c
->
irq
,
wm8993
);
regmap_exit
(
wm8993
->
regmap
);
regulator_bulk_disable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
regulator_bulk_disable
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
regulator_bulk_free
(
ARRAY_SIZE
(
wm8993
->
supplies
),
wm8993
->
supplies
);
return
0
;
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