aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/cirrusfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/cirrusfb.c')
-rw-r--r--drivers/video/cirrusfb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index f7e2d5add831..35ac9d956b3d 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -81,7 +81,7 @@
81/* debug output */ 81/* debug output */
82#ifdef CIRRUSFB_DEBUG 82#ifdef CIRRUSFB_DEBUG
83#define DPRINTK(fmt, args...) \ 83#define DPRINTK(fmt, args...) \
84 printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) 84 printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
85#else 85#else
86#define DPRINTK(fmt, args...) 86#define DPRINTK(fmt, args...)
87#endif 87#endif
@@ -91,7 +91,7 @@
91#define assert(expr) \ 91#define assert(expr) \
92 if (!(expr)) { \ 92 if (!(expr)) { \
93 printk("Assertion failed! %s,%s,%s,line=%d\n", \ 93 printk("Assertion failed! %s,%s,%s,line=%d\n", \
94 #expr, __FILE__, __FUNCTION__, __LINE__); \ 94 #expr, __FILE__, __func__, __LINE__); \
95 } 95 }
96#else 96#else
97#define assert(expr) 97#define assert(expr)
@@ -3117,7 +3117,7 @@ static void bestclock(long freq, long *best, long *nom,
3117 } 3117 }
3118 } 3118 }
3119 } 3119 }
3120 d = ((143181 * n) + f - 1) / f; 3120 d = DIV_ROUND_UP(143181 * n, f);
3121 if ((d >= 7) && (d <= 63)) { 3121 if ((d >= 7) && (d <= 63)) {
3122 if (d > 31) 3122 if (d > 31)
3123 d = (d / 2) * 2; 3123 d = (d / 2) * 2;