diff options
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 4f27fdc58d84..813b7d752bed 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -434,8 +434,8 @@ static int correct_chipset(struct atyfb_par *par) | |||
434 | const char *name; | 434 | const char *name; |
435 | int i; | 435 | int i; |
436 | 436 | ||
437 | for (i = ARRAY_SIZE(aty_chips) - 1; i >= 0; i--) | 437 | for (i = ARRAY_SIZE(aty_chips); i > 0; i--) |
438 | if (par->pci_id == aty_chips[i].pci_id) | 438 | if (par->pci_id == aty_chips[i - 1].pci_id) |
439 | break; | 439 | break; |
440 | 440 | ||
441 | if (i < 0) | 441 | if (i < 0) |