diff --git a/sound/soc/imx/imx-hdmi-dai.c b/sound/soc/imx/imx-hdmi-dai.c index 0a1686bfcacdbb..06805f38c5e2eb 100644 --- a/sound/soc/imx/imx-hdmi-dai.c +++ b/sound/soc/imx/imx-hdmi-dai.c @@ -1,7 +1,7 @@ /* * ALSA SoC HDMI Audio Layer for MXS * - * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. * * Based on stmp3xxx_spdif_dai.c * Vladimir Barinov @@ -42,8 +42,10 @@ static int imx_hdmi_dai_probe(struct platform_device *pdev) struct imx_hdmi *hdmi_data; int ret = 0; - if (!hdmi_get_registered()) - return -ENOMEM; + if (!hdmi_get_registered()) { + dev_err(&pdev->dev, "Failed: Load HDMI-video first.\n"); + return -ENODEV; + } hdmi_data = kzalloc(sizeof(*hdmi_data), GFP_KERNEL); if (!hdmi_data) diff --git a/sound/soc/imx/imx-hdmi.c b/sound/soc/imx/imx-hdmi.c index a30d478af9de40..f214cffc4a53b8 100644 --- a/sound/soc/imx/imx-hdmi.c +++ b/sound/soc/imx/imx-hdmi.c @@ -1,7 +1,7 @@ /* * ASoC HDMI Transmitter driver for IMX development boards * - * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. * * based on stmp3780_devb_spdif.c * @@ -57,8 +57,10 @@ static int __init imx_hdmi_init(void) { int ret = 0; - if (!hdmi_get_registered()) - return -ENOMEM; + if (!hdmi_get_registered()) { + pr_err("Initialize HDMI-audio failed. Load HDMI-video first!\n"); + return -ENODEV; + } imx_hdmi_snd_device = platform_device_alloc("soc-audio", 4); if (!imx_hdmi_snd_device) {