From patchwork Thu Nov 8 05:37:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,5/5] Sound: Add FDT support to CMD. Date: Wed, 07 Nov 2012 19:37:19 -0000 From: Rajeshwari Shinde X-Patchwork-Id: 197765 Message-Id: <1352353039-17165-6-git-send-email-rajeshwari.s@samsung.com> To: u-boot@lists.denx.de Cc: patches@linaro.org This patch adds FDT support to sound init. Signed-off-by: Rajeshwari Shinde --- common/cmd_sound.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/cmd_sound.c b/common/cmd_sound.c index 459d1eb..ad8669f 100644 --- a/common/cmd_sound.c +++ b/common/cmd_sound.c @@ -33,7 +33,11 @@ static int do_init(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int ret; +#ifdef CONFIG_OF_CONTROL + ret = sound_init(gd->fdt_blob); +#else ret = sound_init(); +#endif if (ret) { printf("Initialise Audio driver failed\n"); return CMD_RET_FAILURE;