diff options
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r-- | drivers/ata/pata_it821x.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index f1f8cec8c224..ff9a6fd36657 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -620,10 +620,6 @@ static struct scsi_host_template it821x_sht = { | |||
620 | .slave_configure = ata_scsi_slave_config, | 620 | .slave_configure = ata_scsi_slave_config, |
621 | .slave_destroy = ata_scsi_slave_destroy, | 621 | .slave_destroy = ata_scsi_slave_destroy, |
622 | .bios_param = ata_std_bios_param, | 622 | .bios_param = ata_std_bios_param, |
623 | #ifdef CONFIG_PM | ||
624 | .resume = ata_scsi_device_resume, | ||
625 | .suspend = ata_scsi_device_suspend, | ||
626 | #endif | ||
627 | }; | 623 | }; |
628 | 624 | ||
629 | static struct ata_port_operations it821x_smart_port_ops = { | 625 | static struct ata_port_operations it821x_smart_port_ops = { |
@@ -722,14 +718,14 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
722 | { | 718 | { |
723 | u8 conf; | 719 | u8 conf; |
724 | 720 | ||
725 | static struct ata_port_info info_smart = { | 721 | static const struct ata_port_info info_smart = { |
726 | .sht = &it821x_sht, | 722 | .sht = &it821x_sht, |
727 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 723 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
728 | .pio_mask = 0x1f, | 724 | .pio_mask = 0x1f, |
729 | .mwdma_mask = 0x07, | 725 | .mwdma_mask = 0x07, |
730 | .port_ops = &it821x_smart_port_ops | 726 | .port_ops = &it821x_smart_port_ops |
731 | }; | 727 | }; |
732 | static struct ata_port_info info_passthru = { | 728 | static const struct ata_port_info info_passthru = { |
733 | .sht = &it821x_sht, | 729 | .sht = &it821x_sht, |
734 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 730 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
735 | .pio_mask = 0x1f, | 731 | .pio_mask = 0x1f, |
@@ -737,8 +733,8 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
737 | .udma_mask = 0x7f, | 733 | .udma_mask = 0x7f, |
738 | .port_ops = &it821x_passthru_port_ops | 734 | .port_ops = &it821x_passthru_port_ops |
739 | }; | 735 | }; |
740 | static struct ata_port_info *port_info[2]; | ||
741 | 736 | ||
737 | const struct ata_port_info *ppi[] = { NULL, NULL }; | ||
742 | static char *mode[2] = { "pass through", "smart" }; | 738 | static char *mode[2] = { "pass through", "smart" }; |
743 | 739 | ||
744 | /* Force the card into bypass mode if so requested */ | 740 | /* Force the card into bypass mode if so requested */ |
@@ -751,11 +747,11 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
751 | 747 | ||
752 | 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]); |
753 | if (conf == 0) | 749 | if (conf == 0) |
754 | port_info[0] = port_info[1] = &info_passthru; | 750 | ppi[0] = &info_passthru; |
755 | else | 751 | else |
756 | port_info[0] = port_info[1] = &info_smart; | 752 | ppi[0] = &info_smart; |
757 | 753 | ||
758 | return ata_pci_init_one(pdev, port_info, 2); | 754 | return ata_pci_init_one(pdev, ppi); |
759 | } | 755 | } |
760 | 756 | ||
761 | #ifdef CONFIG_PM | 757 | #ifdef CONFIG_PM |