MLK-18368-8: imx-hdmi: change the platform device id for hdmi audio tx
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 23 May 2018 08:04:19 +0000 (16:04 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
platform device id of TX is 1, RX is 2.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
drivers/gpu/drm/imx/hdp/imx-hdp-audio.c

index 48bcc1e..40313e0 100644 (file)
@@ -196,7 +196,7 @@ void imx_hdp_register_audio_driver(struct device *dev)
        struct platform_device *pdev;
 
        pdev = platform_device_register_data(dev, HDMI_CODEC_DRV_NAME,
-                                            PLATFORM_DEVID_NONE, &codec_data,
+                                            1, &codec_data,
                                             sizeof(codec_data));
        if (IS_ERR(pdev))
                return;