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
09d930ae
Commit
09d930ae
authored
Aug 22, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-3.1' into for-3.2
parents
33c5f969
c09f5ca7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
14 deletions
+19
-14
sound/soc/ep93xx/ep93xx-i2s.c
sound/soc/ep93xx/ep93xx-i2s.c
+3
-2
sound/soc/fsl/fsl_dma.c
sound/soc/fsl/fsl_dma.c
+2
-0
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/mpc8610_hpcd.c
+9
-9
sound/soc/fsl/p1022_ds.c
sound/soc/fsl/p1022_ds.c
+3
-1
sound/soc/kirkwood/kirkwood-i2s.c
sound/soc/kirkwood/kirkwood-i2s.c
+1
-1
sound/soc/soc-core.c
sound/soc/soc-core.c
+1
-1
No files found.
sound/soc/ep93xx/ep93xx-i2s.c
View file @
09d930ae
...
...
@@ -385,14 +385,14 @@ static int ep93xx_i2s_probe(struct platform_device *pdev)
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
res
)
{
err
=
-
ENODEV
;
goto
fail
;
goto
fail
_free_info
;
}
info
->
mem
=
request_mem_region
(
res
->
start
,
resource_size
(
res
),
pdev
->
name
);
if
(
!
info
->
mem
)
{
err
=
-
EBUSY
;
goto
fail
;
goto
fail
_free_info
;
}
info
->
regs
=
ioremap
(
info
->
mem
->
start
,
resource_size
(
info
->
mem
));
...
...
@@ -435,6 +435,7 @@ static int ep93xx_i2s_probe(struct platform_device *pdev)
iounmap
(
info
->
regs
);
fail_release_mem:
release_mem_region
(
info
->
mem
->
start
,
resource_size
(
info
->
mem
));
fail_free_info:
kfree
(
info
);
fail:
return
err
;
...
...
sound/soc/fsl/fsl_dma.c
View file @
09d930ae
...
...
@@ -878,10 +878,12 @@ static struct device_node *find_ssi_node(struct device_node *dma_channel_np)
* assume that device_node pointers are a valid comparison.
*/
np
=
of_parse_phandle
(
ssi_np
,
"fsl,playback-dma"
,
0
);
of_node_put
(
np
);
if
(
np
==
dma_channel_np
)
return
ssi_np
;
np
=
of_parse_phandle
(
ssi_np
,
"fsl,capture-dma"
,
0
);
of_node_put
(
np
);
if
(
np
==
dma_channel_np
)
return
ssi_np
;
}
...
...
sound/soc/fsl/mpc8610_hpcd.c
View file @
09d930ae
...
...
@@ -345,8 +345,10 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
}
machine_data
=
kzalloc
(
sizeof
(
struct
mpc8610_hpcd_data
),
GFP_KERNEL
);
if
(
!
machine_data
)
return
-
ENOMEM
;
if
(
!
machine_data
)
{
ret
=
-
ENOMEM
;
goto
error_alloc
;
}
machine_data
->
dai
[
0
].
cpu_dai_name
=
dev_name
(
&
ssi_pdev
->
dev
);
machine_data
->
dai
[
0
].
ops
=
&
mpc8610_hpcd_ops
;
...
...
@@ -494,7 +496,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
ret
=
platform_device_add
(
sound_device
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"platform device add failed
\n
"
);
goto
error
;
goto
error
_sound
;
}
dev_set_drvdata
(
&
pdev
->
dev
,
sound_device
);
...
...
@@ -502,14 +504,12 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
return
0
;
error_sound:
platform_device_unregister
(
sound_device
);
error:
of_node_put
(
codec_np
);
if
(
sound_device
)
platform_device_unregister
(
sound_device
);
kfree
(
machine_data
);
error_alloc:
of_node_put
(
codec_np
);
return
ret
;
}
...
...
sound/soc/fsl/p1022_ds.c
View file @
09d930ae
...
...
@@ -297,8 +297,10 @@ static int get_dma_channel(struct device_node *ssi_np,
* dai->platform name should already point to an allocated buffer.
*/
ret
=
of_address_to_resource
(
dma_channel_np
,
0
,
&
res
);
if
(
ret
)
if
(
ret
)
{
of_node_put
(
dma_channel_np
);
return
ret
;
}
snprintf
((
char
*
)
dai
->
platform_name
,
DAI_NAME_SIZE
,
"%llx.%s"
,
(
unsigned
long
long
)
res
.
start
,
dma_channel_np
->
name
);
...
...
sound/soc/kirkwood/kirkwood-i2s.c
View file @
09d930ae
...
...
@@ -424,7 +424,7 @@ static __devinit int kirkwood_i2s_dev_probe(struct platform_device *pdev)
if
(
!
priv
->
mem
)
{
dev_err
(
&
pdev
->
dev
,
"request_mem_region failed
\n
"
);
err
=
-
EBUSY
;
goto
error
;
goto
error
_alloc
;
}
priv
->
io
=
ioremap
(
priv
->
mem
->
start
,
SZ_16K
);
...
...
sound/soc/soc-core.c
View file @
09d930ae
...
...
@@ -1915,7 +1915,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
if
(
prefix
)
{
name_len
=
strlen
(
long_name
)
+
strlen
(
prefix
)
+
2
;
name
=
kmalloc
(
name_len
,
GFP_
ATOMIC
);
name
=
kmalloc
(
name_len
,
GFP_
KERNEL
);
if
(
!
name
)
return
NULL
;
...
...
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