aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/nvidia
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/nvidia')
-rw-r--r--drivers/video/nvidia/nv_hw.c4
-rw-r--r--drivers/video/nvidia/nv_setup.c4
-rw-r--r--drivers/video/nvidia/nvidia.c9
3 files changed, 7 insertions, 10 deletions
diff --git a/drivers/video/nvidia/nv_hw.c b/drivers/video/nvidia/nv_hw.c
index d1a10549f543..ed20a9871b33 100644
--- a/drivers/video/nvidia/nv_hw.c
+++ b/drivers/video/nvidia/nv_hw.c
@@ -129,7 +129,7 @@ typedef struct {
129 int nvclk_khz; 129 int nvclk_khz;
130 char mem_page_miss; 130 char mem_page_miss;
131 char mem_latency; 131 char mem_latency;
132 int memory_type; 132 u32 memory_type;
133 int memory_width; 133 int memory_width;
134 char enable_video; 134 char enable_video;
135 char gr_during_vid; 135 char gr_during_vid;
@@ -719,7 +719,7 @@ static void nForceUpdateArbitrationSettings(unsigned VClk,
719 memctrl >>= 16; 719 memctrl >>= 16;
720 720
721 if ((memctrl == 0x1A9) || (memctrl == 0x1AB) || (memctrl == 0x1ED)) { 721 if ((memctrl == 0x1A9) || (memctrl == 0x1AB) || (memctrl == 0x1ED)) {
722 int dimm[3]; 722 u32 dimm[3];
723 723
724 dev = pci_get_bus_and_slot(0, 2); 724 dev = pci_get_bus_and_slot(0, 2);
725 pci_read_config_dword(dev, 0x40, &dimm[0]); 725 pci_read_config_dword(dev, 0x40, &dimm[0]);
diff --git a/drivers/video/nvidia/nv_setup.c b/drivers/video/nvidia/nv_setup.c
index 82579d3a9970..d9627b57eb4d 100644
--- a/drivers/video/nvidia/nv_setup.c
+++ b/drivers/video/nvidia/nv_setup.c
@@ -265,12 +265,12 @@ static void nv10GetConfig(struct nvidia_par *par)
265 265
266 dev = pci_get_bus_and_slot(0, 1); 266 dev = pci_get_bus_and_slot(0, 1);
267 if ((par->Chipset & 0xffff) == 0x01a0) { 267 if ((par->Chipset & 0xffff) == 0x01a0) {
268 int amt = 0; 268 u32 amt;
269 269
270 pci_read_config_dword(dev, 0x7c, &amt); 270 pci_read_config_dword(dev, 0x7c, &amt);
271 par->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; 271 par->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024;
272 } else if ((par->Chipset & 0xffff) == 0x01f0) { 272 } else if ((par->Chipset & 0xffff) == 0x01f0) {
273 int amt = 0; 273 u32 amt;
274 274
275 pci_read_config_dword(dev, 0x84, &amt); 275 pci_read_config_dword(dev, 0x84, &amt);
276 par->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024; 276 par->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024;
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index 596652d2831f..9dbb5a5a267b 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -43,14 +43,14 @@
43#define NVTRACE if (0) printk 43#define NVTRACE if (0) printk
44#endif 44#endif
45 45
46#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __FUNCTION__) 46#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __func__)
47#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __FUNCTION__) 47#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __func__)
48 48
49#ifdef CONFIG_FB_NVIDIA_DEBUG 49#ifdef CONFIG_FB_NVIDIA_DEBUG
50#define assert(expr) \ 50#define assert(expr) \
51 if (!(expr)) { \ 51 if (!(expr)) { \
52 printk( "Assertion failed! %s,%s,%s,line=%d\n",\ 52 printk( "Assertion failed! %s,%s,%s,line=%d\n",\
53 #expr,__FILE__,__FUNCTION__,__LINE__); \ 53 #expr,__FILE__,__func__,__LINE__); \
54 BUG(); \ 54 BUG(); \
55 } 55 }
56#else 56#else
@@ -1559,7 +1559,6 @@ static int __devinit nvidiafb_init(void)
1559 1559
1560module_init(nvidiafb_init); 1560module_init(nvidiafb_init);
1561 1561
1562#ifdef MODULE
1563static void __exit nvidiafb_exit(void) 1562static void __exit nvidiafb_exit(void)
1564{ 1563{
1565 pci_unregister_driver(&nvidiafb_driver); 1564 pci_unregister_driver(&nvidiafb_driver);
@@ -1615,5 +1614,3 @@ MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) "
1615MODULE_AUTHOR("Antonino Daplas"); 1614MODULE_AUTHOR("Antonino Daplas");
1616MODULE_DESCRIPTION("Framebuffer driver for nVidia graphics chipset"); 1615MODULE_DESCRIPTION("Framebuffer driver for nVidia graphics chipset");
1617MODULE_LICENSE("GPL"); 1616MODULE_LICENSE("GPL");
1618#endif /* MODULE */
1619