From c65f73be238d5b1dcd3c45b7a0adefe331b327d4 Mon Sep 17 00:00:00 2001 From: yzq Date: Thu, 14 Mar 2013 16:57:03 +0800 Subject: [PATCH] it66121 hdmi : fix read device_id err --- .../rockchip/hdmi/chips/cat66121/cat66121_hdmi.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/video/rockchip/hdmi/chips/cat66121/cat66121_hdmi.c b/drivers/video/rockchip/hdmi/chips/cat66121/cat66121_hdmi.c index 9f7d74f3620d..8e73dc6da6a2 100755 --- a/drivers/video/rockchip/hdmi/chips/cat66121/cat66121_hdmi.c +++ b/drivers/video/rockchip/hdmi/chips/cat66121/cat66121_hdmi.c @@ -177,6 +177,12 @@ static int cat66121_hdmi_i2c_probe(struct i2c_client *client,const struct i2c_de rc = -ENXIO; goto err_request_lcdc; } + if(pdata->io_init){ + if(pdata->io_init()<0){ + dev_err(&client->dev, "fail to rst chip\n"); + goto err_request_lcdc; + } + } if(cat66121_detect_device()!=1){ dev_err(hdmi->dev, "can't find it6610 device \n"); rc = -ENXIO; @@ -213,12 +219,7 @@ static int cat66121_hdmi_i2c_probe(struct i2c_client *client,const struct i2c_de spin_lock_init(&hdmi->irq_lock); mutex_init(&hdmi->enable_mutex); - if(pdata->io_init){ - if(pdata->io_init()<0){ - dev_err(&client->dev, "fail to rst chip\n"); - goto err_request_lcdc; - } - } + cat66121_hdmi_sys_init(); #ifdef HDMI_USE_IRQ if(client->irq != INVALID_GPIO) { -- 2.34.1