\r
extern irqreturn_t hdmi_irq(int irq, void *priv);\r
extern void hdmi_work(struct work_struct *work);\r
-extern struct rk_lcdc_device_driver * rk_get_lcdc_drv(int id);\r
+extern struct rk_lcdc_device_driver * rk_get_lcdc_drv(char *name);\r
extern void hdmi_register_display_sysfs(struct hdmi *hdmi, struct device *parent);\r
\r
#ifdef CONFIG_HAS_EARLYSUSPEND\r
hdmi->dev = &pdev->dev;\r
platform_set_drvdata(pdev, hdmi);\r
\r
- hdmi->lcdc = rk_get_lcdc_drv(HDMI_SOURCE_DEFAULT);\r
+ if(HDMI_SOURCE_DEFAULT == HDMI_SOURCE_LCDC0)\r
+ hdmi->lcdc = rk_get_lcdc_drv("lcdc0");\r
+ else\r
+ hdmi->lcdc = rk_get_lcdc_drv("lcdc1");\r
if(hdmi->lcdc == NULL)\r
{\r
dev_err(hdmi->dev, "can not connect to video source lcdc\n");\r