Commit 6cf059e1 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

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: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 95d67bb1
...@@ -656,7 +656,7 @@ int NVCommonSetup(struct fb_info *info) ...@@ -656,7 +656,7 @@ int NVCommonSetup(struct fb_info *info)
par->LVDS = 0; par->LVDS = 0;
if (par->FlatPanel && par->twoHeads) { if (par->FlatPanel && par->twoHeads) {
NV_WR32(par->PRAMDAC0, 0x08B0, 0x00010004); NV_WR32(par->PRAMDAC0, 0x08B0, 0x00010004);
if (par->PRAMDAC0[0x08b4] & 1) if (NV_RD32(par->PRAMDAC0, 0x08b4) & 1)
par->LVDS = 1; par->LVDS = 1;
printk("nvidiafb: Panel is %s\n", par->LVDS ? "LVDS" : "TMDS"); printk("nvidiafb: Panel is %s\n", par->LVDS ? "LVDS" : "TMDS");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment