summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-06-11 15:13:37 -0700
committerGary King <gking@nvidia.com>2010-06-11 16:42:59 -0700
commit45df73912714e625473ce802d29926a56b3e4147 (patch)
tree82ad3ca164df13194fa541725bcfeae4ff002f4f /drivers
parent98d84729d9cc860e9fd275f89d8626829489c1cb (diff)
framebuffer: tegra: fix compiler warning
redefine an unsigned long variable as NvU32 to make gcc happy Change-Id: I4f949c9f812e5834f61899a57a8c4a957b571c62 Reviewed-on: http://git-master/r/2521 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra-fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra-fb.c b/drivers/video/tegra-fb.c
index fa18ad494c79..358ac5c670c2 100644
--- a/drivers/video/tegra-fb.c
+++ b/drivers/video/tegra-fb.c
@@ -85,7 +85,7 @@ static int s_fb_Bpp;
static NvRmMemHandle s_fb_hMem;
static unsigned long *s_fb_regs;
static unsigned short s_use_tearing_effect;
-static unsigned long s_power_id = (unsigned long)-1;
+static NvU32 s_power_id = -1ul;
#define DISPLAY_BASE (0x54200000)
#define REGW( reg, val ) \
@@ -171,7 +171,7 @@ int tegra_fb_setcolreg(unsigned regno, unsigned red, unsigned green,
static NvBool tegra_fb_power_register( void )
{
- if( s_power_id != (unsigned long)-1 )
+ if( s_power_id != -1ul )
{
return NV_TRUE;
}