]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/matrox/matroxfb_Ti3026.c
fat: cleanup fat_parse_long() error handling
[linux-2.6-omap-h63xx.git] / drivers / video / matrox / matroxfb_Ti3026.c
index 23ebad0a12d8ca55a0d598cf4219868e03cfa045..13524821e242c7ef0b9f99d11ff31501da995543 100644 (file)
  *     (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de>
  *
  * (following author is not in any relation with this code, but his ideas
- *  were used when writting this driver)
+ *  were used when writing this driver)
  *
  *              FreeVBE/AF (Matrox), "Shawn Hargreaves" <shawn@talula.demon.co.uk>
  *
  */
 
-#include <linux/config.h>
 
 #include "matroxfb_Ti3026.h"
 #include "matroxfb_misc.h"
@@ -284,7 +283,7 @@ static int Ti3026_calcclock(CPMINFO unsigned int freq, unsigned int fmax, int* i
        unsigned int fvco;
        unsigned int lin, lfeed, lpost;
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        fvco = PLL_calcclock(PMINFO freq, fmax, &lin, &lfeed, &lpost);
        fvco >>= (*post = lpost);
@@ -298,7 +297,7 @@ static int Ti3026_setpclk(WPMINFO int clk) {
        unsigned int pixfeed, pixin, pixpost;
        struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        f_pll = Ti3026_calcclock(PMINFO clk, ACCESS_FBINFO(max_pixel_clock), &pixin, &pixfeed, &pixpost);
 
@@ -366,7 +365,7 @@ static int Ti3026_init(WPMINFO struct my_timming* m) {
        u_int8_t muxctrl = isInterleave(MINFO) ? TVP3026_XMUXCTRL_MEMORY_64BIT : TVP3026_XMUXCTRL_MEMORY_32BIT;
        struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        memcpy(hw->DACreg, MGADACbpp32, sizeof(hw->DACreg));
        switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) {
@@ -441,7 +440,7 @@ static void ti3026_setMCLK(WPMINFO int fout){
        unsigned int rfhcnt, mclk_ctl;
        int tmout;
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        f_pll = Ti3026_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &mclk_n, &mclk_m, &mclk_p);
 
@@ -535,7 +534,7 @@ static void ti3026_setMCLK(WPMINFO int fout){
 
 static void ti3026_ramdac_init(WPMINFO2) {
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        ACCESS_FBINFO(features.pll.vco_freq_min) = 110000;
        ACCESS_FBINFO(features.pll.ref_freq)     = 114545;
@@ -555,7 +554,7 @@ static void Ti3026_restore(WPMINFO2) {
        struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
        CRITFLAGS
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
 #ifdef DEBUG
        dprintk(KERN_INFO "EXTVGA regs: ");
@@ -663,7 +662,7 @@ static void Ti3026_restore(WPMINFO2) {
 
 static void Ti3026_reset(WPMINFO2) {
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        ti3026_ramdac_init(PMINFO2);
 }
@@ -681,7 +680,7 @@ static int Ti3026_preinit(WPMINFO2) {
                                          2048, 0};
        struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
 
-       DBG(__FUNCTION__)
+       DBG(__func__)
 
        ACCESS_FBINFO(millenium) = 1;
        ACCESS_FBINFO(milleniumII) = (ACCESS_FBINFO(pcidev)->device != PCI_DEVICE_ID_MATROX_MIL);