diff options
Diffstat (limited to 'drivers/mtd/devices/pmc551.c')
-rw-r--r-- | drivers/mtd/devices/pmc551.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c index d2fd550f7e09..fc8ea0a57ac2 100644 --- a/drivers/mtd/devices/pmc551.c +++ b/drivers/mtd/devices/pmc551.c | |||
@@ -668,7 +668,7 @@ static int __init init_pmc551(void) | |||
668 | { | 668 | { |
669 | struct pci_dev *PCI_Device = NULL; | 669 | struct pci_dev *PCI_Device = NULL; |
670 | struct mypriv *priv; | 670 | struct mypriv *priv; |
671 | int count, found = 0; | 671 | int found = 0; |
672 | struct mtd_info *mtd; | 672 | struct mtd_info *mtd; |
673 | u32 length = 0; | 673 | u32 length = 0; |
674 | 674 | ||
@@ -695,7 +695,7 @@ static int __init init_pmc551(void) | |||
695 | /* | 695 | /* |
696 | * PCU-bus chipset probe. | 696 | * PCU-bus chipset probe. |
697 | */ | 697 | */ |
698 | for (count = 0; count < MAX_MTD_DEVICES; count++) { | 698 | for (;;) { |
699 | 699 | ||
700 | if ((PCI_Device = pci_get_device(PCI_VENDOR_ID_V3_SEMI, | 700 | if ((PCI_Device = pci_get_device(PCI_VENDOR_ID_V3_SEMI, |
701 | PCI_DEVICE_ID_V3_SEMI_V370PDC, | 701 | PCI_DEVICE_ID_V3_SEMI_V370PDC, |