arm: tegra: cardhu: Remove cardhu_ov5650_late_init error during boot.
Abhiruchi Birajdar [Wed, 8 Jun 2011 14:06:37 +0000 (19:06 +0530)]
We need TCA6416 for E1187/E1188. It is not on E1198/E1291 boards.
So for E1198/E1291, we can return without doing anything in
cardhu_ov5650_late_init.

Bug: 822234
Change-Id: I25e0af2ed0da70ac33470b282f4446b6a9471be8
Reviewed-on: http://git-master/r/35707
Tested-by: Abhiruchi Birajdar <abirajdar@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>

Rebase-Id: Rf772a9a5f4c67d2a65983f3f8a507471b21bc862

arch/arm/mach-tegra/board-cardhu-sensors.c

index d00fe90..086ff7e 100644 (file)
@@ -721,6 +721,10 @@ int __init cardhu_ov5650_late_init(void)
        int ret;
        int i;
 
+       if ((board_info.board_id == BOARD_E1198) ||
+               (board_info.board_id == BOARD_E1291))
+               return 0;
+
        printk("%s: \n", __func__);
        for (i = 0; i < ARRAY_SIZE(ov5650_gpio_keys); i++) {
                ret = gpio_request(ov5650_gpio_keys[i].gpio,