ARM: Tegra: Dalmore: Adding return statement.
pdabade [Tue, 12 Feb 2013 07:36:02 +0000 (12:36 +0530)]
Adding return statement to avoid registration of platform device
twice for board E1613.

Change-Id: Ie0d630195f884ee0fc11d21d6aa6a32f2b0d4463
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/199900
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-dalmore-kbc.c

index 03e9b25..9311c39 100644 (file)
@@ -166,6 +166,7 @@ int __init dalmore_kbc_init(void)
        if (board_info.board_id == BOARD_E1613) {
                platform_device_register(&dalmore_int_keys_device);
                dalmore_register_kbc();
+               return 0;
        }
 
        if ((board_info.board_id == BOARD_E1611) && (board_info.sku == 1000)) {