aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/ata_piix.c5
-rw-r--r--drivers/ata/sata_via.c2
-rw-r--r--drivers/mtd/mtdsuper.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index e40c94f5f59d..3b8bf1812dc8 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -955,7 +955,8 @@ static int piix_broken_suspend(void)
955 DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE M500"), 955 DMI_MATCH(DMI_PRODUCT_NAME, "PORTEGE M500"),
956 }, 956 },
957 }, 957 },
958 { } 958
959 { } /* terminate list */
959 }; 960 };
960 static const char *oemstrs[] = { 961 static const char *oemstrs[] = {
961 "Tecra M3,", 962 "Tecra M3,",
@@ -1187,6 +1188,8 @@ static void piix_iocfg_bit18_quirk(struct pci_dev *pdev)
1187 DMI_MATCH(DMI_PRODUCT_NAME, "M570U"), 1188 DMI_MATCH(DMI_PRODUCT_NAME, "M570U"),
1188 }, 1189 },
1189 }, 1190 },
1191
1192 { } /* terminate list */
1190 }; 1193 };
1191 u32 iocfg; 1194 u32 iocfg;
1192 1195
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c
index a4e631766eee..57fd30de8f0d 100644
--- a/drivers/ata/sata_via.c
+++ b/drivers/ata/sata_via.c
@@ -371,7 +371,7 @@ static void vt6421_set_dma_mode(struct ata_port *ap, struct ata_device *adev)
371{ 371{
372 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 372 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
373 static const u8 udma_bits[] = { 0xEE, 0xE8, 0xE6, 0xE4, 0xE2, 0xE1, 0xE0, 0xE0 }; 373 static const u8 udma_bits[] = { 0xEE, 0xE8, 0xE6, 0xE4, 0xE2, 0xE1, 0xE0, 0xE0 };
374 pci_write_config_byte(pdev, PATA_UDMA_TIMING, udma_bits[adev->pio_mode - XFER_UDMA_0]); 374 pci_write_config_byte(pdev, PATA_UDMA_TIMING, udma_bits[adev->dma_mode - XFER_UDMA_0]);
375} 375}
376 376
377static const unsigned int svia_bar_sizes[] = { 377static const unsigned int svia_bar_sizes[] = {
diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
index aca331971201..9b430f20b640 100644
--- a/drivers/mtd/mtdsuper.c
+++ b/drivers/mtd/mtdsuper.c
@@ -70,6 +70,8 @@ static int get_sb_mtd_aux(struct file_system_type *fs_type, int flags,
70 DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n", 70 DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n",
71 mtd->index, mtd->name); 71 mtd->index, mtd->name);
72 72
73 sb->s_flags = flags;
74
73 ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0); 75 ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0);
74 if (ret < 0) { 76 if (ret < 0) {
75 up_write(&sb->s_umount); 77 up_write(&sb->s_umount);