diff mbox

[6/6,V3] Sound: Add FDT support to CMD.

Message ID 1354175752-17233-7-git-send-email-rajeshwari.s@samsung.com
State Superseded
Headers show

Commit Message

Rajeshwari Shinde Nov. 29, 2012, 7:55 a.m. UTC
This patch adds FDT support to sound init in CMD.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
Changes in V2:
        - Same function call for sound init in case of FDT or non FDT support.
Changes in V3:
	- Removed #ifdef CONFIG_OF_CONTROL where ever
	not required.
 common/cmd_sound.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Simon Glass Nov. 30, 2012, 5:06 a.m. UTC | #1
On Wed, Nov 28, 2012 at 11:55 PM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> This patch adds FDT support to sound init in CMD.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
> Changes in V2:
>         - Same function call for sound init in case of FDT or non FDT support.
> Changes in V3:
>         - Removed #ifdef CONFIG_OF_CONTROL where ever
>         not required.
>  common/cmd_sound.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/cmd_sound.c b/common/cmd_sound.c
> index 459d1eb..cfca9dd 100644
> --- a/common/cmd_sound.c
> +++ b/common/cmd_sound.c
> @@ -33,7 +33,7 @@ static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
>  {
>         int ret;
>
> -       ret = sound_init();
> +       ret = sound_init(gd->fdt_blob);
>         if (ret) {
>                 printf("Initialise Audio driver failed\n");
>                 return CMD_RET_FAILURE;
> --
> 1.7.4.4
>
diff mbox

Patch

diff --git a/common/cmd_sound.c b/common/cmd_sound.c
index 459d1eb..cfca9dd 100644
--- a/common/cmd_sound.c
+++ b/common/cmd_sound.c
@@ -33,7 +33,7 @@  static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
 {
 	int ret;
 
-	ret = sound_init();
+	ret = sound_init(gd->fdt_blob);
 	if (ret) {
 		printf("Initialise Audio driver failed\n");
 		return CMD_RET_FAILURE;