diff options
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 49cf7e2df47a..6b9fb2179264 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/module.h> | 5 | #include <linux/module.h> |
6 | #include <linux/pci.h> | 6 | #include <linux/pci.h> |
7 | #include <linux/init.h> | 7 | #include <linux/init.h> |
8 | #include <linux/kernel.h> | ||
8 | #include <linux/pagemap.h> | 9 | #include <linux/pagemap.h> |
9 | #include <linux/agp_backend.h> | 10 | #include <linux/agp_backend.h> |
10 | #include "agp.h" | 11 | #include "agp.h" |
@@ -846,7 +847,7 @@ static int intel_i915_remove_entries(struct agp_memory *mem,off_t pg_start, | |||
846 | */ | 847 | */ |
847 | static int intel_i9xx_fetch_size(void) | 848 | static int intel_i9xx_fetch_size(void) |
848 | { | 849 | { |
849 | int num_sizes = sizeof(intel_i830_sizes) / sizeof(*intel_i830_sizes); | 850 | int num_sizes = ARRAY_SIZE(intel_i830_sizes); |
850 | int aper_size; /* size in megabytes */ | 851 | int aper_size; /* size in megabytes */ |
851 | int i; | 852 | int i; |
852 | 853 | ||