dd macro compile control for phonepad project in anx7150.c
authorliuy <liuy@rock-chips.com>
Wed, 10 Aug 2011 10:43:56 +0000 (18:43 +0800)
committerliuy <liuy@rock-chips.com>
Wed, 10 Aug 2011 10:43:56 +0000 (18:43 +0800)
drivers/video/hdmi/chips/anx7150.c

index 51b33b0fec0caa1b42709a4510b7519cb0161894..74949e968b109bba396224d4212cf1232f37182f 100755 (executable)
@@ -159,10 +159,12 @@ static int anx7150_i2c_probe(struct i2c_client *client,const struct i2c_device_i
        struct hdmi *hdmi = NULL;\r
        struct anx7150_pdata *anx = NULL;\r
 \r
+#if defined(CONFIG_MACH_RK29_PHONEPADSDK)\r
        gpio_request(HDMI_VDD_CTL, "hdmi pwr ctl");\r
        gpio_direction_output(HDMI_VDD_CTL, GPIO_HIGH);\r
        //gpio_set_value(HDMI_VDD_CTL, GPIO_HIGH); \r
        mdelay(10);\r
+#endif\r
 \r
        hdmi = hdmi_register(sizeof(struct anx7150_pdata), &client->dev);\r
     if (!hdmi)\r