]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/pata_it821x.c
Merge tag 'powerpc-4.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[karo-tx-linux.git] / drivers / ata / pata_it821x.c
index dc3d7877f29d7898a11780595e27cabb01d53a7e..7a21edf89e72adb643dfb6fd7ac127e806bdc614 100644 (file)
@@ -604,9 +604,9 @@ static void it821x_display_disk(int n, u8 *buf)
 {
        unsigned char id[41];
        int mode = 0;
-       char *mtype = "";
+       const char *mtype = "";
        char mbuf[8];
-       char *cbl = "(40 wire cable)";
+       const char *cbl = "(40 wire cable)";
 
        static const char *types[5] = {
                "RAID0", "RAID1", "RAID 0+1", "JBOD", "DISK"
@@ -903,7 +903,7 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
        };
 
        const struct ata_port_info *ppi[] = { NULL, NULL };
-       static char *mode[2] = { "pass through", "smart" };
+       static const char *mode[2] = { "pass through", "smart" };
        int rc;
 
        rc = pcim_enable_device(pdev);
@@ -935,7 +935,7 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
        return ata_pci_bmdma_init_one(pdev, ppi, &it821x_sht, NULL, 0);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int it821x_reinit_one(struct pci_dev *pdev)
 {
        struct ata_host *host = pci_get_drvdata(pdev);
@@ -965,7 +965,7 @@ static struct pci_driver it821x_pci_driver = {
        .id_table       = it821x,
        .probe          = it821x_init_one,
        .remove         = ata_pci_remove_one,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
        .suspend        = ata_pci_device_suspend,
        .resume         = it821x_reinit_one,
 #endif