[FOSS_TLK]platform: tegra: fix WITH_ROLLBACK_PROTECTION botch
Scott Long [Wed, 25 Feb 2015 08:01:55 +0000 (00:01 -0800)]
Need to use #if not #if defined() to correctly pick up
WITH_ROLLBACK_PROTECTION value from makefile.

Change-Id: I69a4e7268a0aa197d53fe0bc2eefefbd805af48d
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/715785
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

platform/tegra/common/platform.c

index 0dbecb6..6d40b08 100644 (file)
@@ -229,7 +229,7 @@ int platform_ss_request_handler(void)
        return 0;
 }
 
-#if defined(WITH_ROLLBACK_PROTECTION)
+#if WITH_ROLLBACK_PROTECTION
 static void platform_ss_parse_dtb(uint32_t *ss_config)
 {
        void *fdt = dtb_addr;
@@ -263,7 +263,7 @@ void platform_ss_get_config(uint32_t *ss_config)
 {
        *ss_config = 0;
 
-#if defined(WITH_ROLLBACK_PROTECTION)
+#if WITH_ROLLBACK_PROTECTION
        /* no rollback if ODM_PRODUCTION not blown */
        if (!platform_fuse_get(FUSE_ID_ODM_PROD))
                return;