projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TCP]: TCP Illinois congestion control (rev3)
[powerpc.git]
/
drivers
/
video
/
acornfb.c
diff --git
a/drivers/video/acornfb.c
b/drivers/video/acornfb.c
index
76448d6
..
61a8bf1
100644
(file)
--- a/
drivers/video/acornfb.c
+++ b/
drivers/video/acornfb.c
@@
-17,7
+17,6
@@
* - Blanking 8bpp displays with VIDC
*/
* - Blanking 8bpp displays with VIDC
*/
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
@@
-1308,7
+1307,7
@@
static int __init acornfb_probe(struct platform_device *dev)
/*
* Try to select a suitable default mode
*/
/*
* Try to select a suitable default mode
*/
- for (i = 0; i <
sizeof(modedb) / sizeof(*
modedb); i++) {
+ for (i = 0; i <
ARRAY_SIZE(
modedb); i++) {
unsigned long hs;
hs = modedb[i].refresh *
unsigned long hs;
hs = modedb[i].refresh *
@@
-1380,7
+1379,7
@@
static int __init acornfb_probe(struct platform_device *dev)
*/
free_unused_pages(PAGE_OFFSET + size, PAGE_OFFSET + MAX_SIZE);
#endif
*/
free_unused_pages(PAGE_OFFSET + size, PAGE_OFFSET + MAX_SIZE);
#endif
-
+
fb_info.fix.smem_len = size;
current_par.palette_size = VIDC_PALETTE_SIZE;
fb_info.fix.smem_len = size;
current_par.palette_size = VIDC_PALETTE_SIZE;
@@
-1391,7
+1390,7
@@
static int __init acornfb_probe(struct platform_device *dev)
*/
do {
rc = fb_find_mode(&fb_info.var, &fb_info, NULL, modedb,
*/
do {
rc = fb_find_mode(&fb_info.var, &fb_info, NULL, modedb,
-
sizeof(modedb) / sizeof(*
modedb),
+
ARRAY_SIZE(
modedb),
&acornfb_default_mode, DEFAULT_BPP);
/*
* If we found an exact match, all ok.
&acornfb_default_mode, DEFAULT_BPP);
/*
* If we found an exact match, all ok.
@@
-1408,7
+1407,7
@@
static int __init acornfb_probe(struct platform_device *dev)
break;
rc = fb_find_mode(&fb_info.var, &fb_info, NULL, modedb,
break;
rc = fb_find_mode(&fb_info.var, &fb_info, NULL, modedb,
-
sizeof(modedb) / sizeof(*
modedb),
+
ARRAY_SIZE(
modedb),
&acornfb_default_mode, DEFAULT_BPP);
if (rc)
break;
&acornfb_default_mode, DEFAULT_BPP);
if (rc)
break;