diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:38:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:29 -0400 |
commit | 6cf059e1bb3c7aa56f2a4468136934863184ef51 (patch) | |
tree | 4523dcb482e38836b75ddfb1eee1136aa7c963fa /drivers/video/nvidia/nv_setup.c | |
parent | 95d67bb1ca82dc8bd75304bda891e7ad81ecd935 (diff) |
nvidiafb: fix sparse warning
Fix the following sparse warning:
drivers/video/nvidia/nv_setup.c:659:20: warning: dereference of noderef expression
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/nvidia/nv_setup.c')
-rw-r--r-- | drivers/video/nvidia/nv_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/nvidia/nv_setup.c b/drivers/video/nvidia/nv_setup.c index eab3e282a4de..336ddb0d10b8 100644 --- a/drivers/video/nvidia/nv_setup.c +++ b/drivers/video/nvidia/nv_setup.c | |||
@@ -656,7 +656,7 @@ int NVCommonSetup(struct fb_info *info) | |||
656 | par->LVDS = 0; | 656 | par->LVDS = 0; |
657 | if (par->FlatPanel && par->twoHeads) { | 657 | if (par->FlatPanel && par->twoHeads) { |
658 | NV_WR32(par->PRAMDAC0, 0x08B0, 0x00010004); | 658 | NV_WR32(par->PRAMDAC0, 0x08B0, 0x00010004); |
659 | if (par->PRAMDAC0[0x08b4] & 1) | 659 | if (NV_RD32(par->PRAMDAC0, 0x08b4) & 1) |
660 | par->LVDS = 1; | 660 | par->LVDS = 1; |
661 | printk("nvidiafb: Panel is %s\n", par->LVDS ? "LVDS" : "TMDS"); | 661 | printk("nvidiafb: Panel is %s\n", par->LVDS ? "LVDS" : "TMDS"); |
662 | } | 662 | } |