aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_it821x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r--drivers/ata/pata_it821x.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index 8e565a5f2c8d..ff9a6fd36657 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -718,14 +718,14 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
718{ 718{
719 u8 conf; 719 u8 conf;
720 720
721 static struct ata_port_info info_smart = { 721 static const struct ata_port_info info_smart = {
722 .sht = &it821x_sht, 722 .sht = &it821x_sht,
723 .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, 723 .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST,
724 .pio_mask = 0x1f, 724 .pio_mask = 0x1f,
725 .mwdma_mask = 0x07, 725 .mwdma_mask = 0x07,
726 .port_ops = &it821x_smart_port_ops 726 .port_ops = &it821x_smart_port_ops
727 }; 727 };
728 static struct ata_port_info info_passthru = { 728 static const struct ata_port_info info_passthru = {
729 .sht = &it821x_sht, 729 .sht = &it821x_sht,
730 .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, 730 .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST,
731 .pio_mask = 0x1f, 731 .pio_mask = 0x1f,
@@ -733,8 +733,8 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
733 .udma_mask = 0x7f, 733 .udma_mask = 0x7f,
734 .port_ops = &it821x_passthru_port_ops 734 .port_ops = &it821x_passthru_port_ops
735 }; 735 };
736 static struct ata_port_info *port_info[2];
737 736
737 const struct ata_port_info *ppi[] = { NULL, NULL };
738 static char *mode[2] = { "pass through", "smart" }; 738 static char *mode[2] = { "pass through", "smart" };
739 739
740 /* Force the card into bypass mode if so requested */ 740 /* Force the card into bypass mode if so requested */
@@ -747,11 +747,11 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
747 747
748 printk(KERN_INFO DRV_NAME ": controller in %s mode.\n", mode[conf]); 748 printk(KERN_INFO DRV_NAME ": controller in %s mode.\n", mode[conf]);
749 if (conf == 0) 749 if (conf == 0)
750 port_info[0] = port_info[1] = &info_passthru; 750 ppi[0] = &info_passthru;
751 else 751 else
752 port_info[0] = port_info[1] = &info_smart; 752 ppi[0] = &info_smart;
753 753
754 return ata_pci_init_one(pdev, port_info, 2); 754 return ata_pci_init_one(pdev, ppi);
755} 755}
756 756
757#ifdef CONFIG_PM 757#ifdef CONFIG_PM