From patchwork Wed Nov 28 06:10:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,7/7,V2] Sound: Add FDT support to CMD. Date: Tue, 27 Nov 2012 20:10:13 -0000 From: Rajeshwari Shinde X-Patchwork-Id: 202371 Message-Id: <1354083013-5213-8-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 in CMD. Signed-off-by: Rajeshwari Shinde --- Changes in V2: - Same function call for sound init in case of FDT or non FDT support. common/cmd_sound.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/common/cmd_sound.c b/common/cmd_sound.c index 459d1eb..e06b1db 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; - ret = sound_init(); +#ifdef CONFIG_OF_CONTROL + ret = sound_init(gd->fdt_blob); +#else + ret = sound_init(NULL); +#endif if (ret) { printf("Initialise Audio driver failed\n"); return CMD_RET_FAILURE;