diff options
Diffstat (limited to 'drivers/ata')
31 files changed, 62 insertions, 40 deletions
diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index ad1e71ec10cf..ce8a7a6d6c7f 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c | |||
@@ -103,7 +103,6 @@ static struct platform_driver ahci_da850_driver = { | |||
103 | .remove = ata_platform_remove_one, | 103 | .remove = ata_platform_remove_one, |
104 | .driver = { | 104 | .driver = { |
105 | .name = "ahci_da850", | 105 | .name = "ahci_da850", |
106 | .owner = THIS_MODULE, | ||
107 | .pm = &ahci_da850_pm_ops, | 106 | .pm = &ahci_da850_pm_ops, |
108 | }, | 107 | }, |
109 | }; | 108 | }; |
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index f3970b4ed889..35d51c59a370 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c | |||
@@ -679,7 +679,6 @@ static struct platform_driver imx_ahci_driver = { | |||
679 | .remove = ata_platform_remove_one, | 679 | .remove = ata_platform_remove_one, |
680 | .driver = { | 680 | .driver = { |
681 | .name = "ahci-imx", | 681 | .name = "ahci-imx", |
682 | .owner = THIS_MODULE, | ||
683 | .of_match_table = imx_ahci_of_match, | 682 | .of_match_table = imx_ahci_of_match, |
684 | .pm = &ahci_imx_pm_ops, | 683 | .pm = &ahci_imx_pm_ops, |
685 | }, | 684 | }, |
diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 68672d2692ee..64bb08432b69 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c | |||
@@ -115,7 +115,6 @@ static struct platform_driver ahci_mvebu_driver = { | |||
115 | .remove = ata_platform_remove_one, | 115 | .remove = ata_platform_remove_one, |
116 | .driver = { | 116 | .driver = { |
117 | .name = "ahci-mvebu", | 117 | .name = "ahci-mvebu", |
118 | .owner = THIS_MODULE, | ||
119 | .of_match_table = ahci_mvebu_of_match, | 118 | .of_match_table = ahci_mvebu_of_match, |
120 | }, | 119 | }, |
121 | }; | 120 | }; |
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 06f1d59fa678..18d539837045 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c | |||
@@ -76,7 +76,6 @@ static struct platform_driver ahci_driver = { | |||
76 | .remove = ata_platform_remove_one, | 76 | .remove = ata_platform_remove_one, |
77 | .driver = { | 77 | .driver = { |
78 | .name = "ahci", | 78 | .name = "ahci", |
79 | .owner = THIS_MODULE, | ||
80 | .of_match_table = ahci_of_match, | 79 | .of_match_table = ahci_of_match, |
81 | .pm = &ahci_pm_ops, | 80 | .pm = &ahci_pm_ops, |
82 | }, | 81 | }, |
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 835d6eea84fd..2f9e8317cc16 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c | |||
@@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, st_ahci_match); | |||
230 | static struct platform_driver st_ahci_driver = { | 230 | static struct platform_driver st_ahci_driver = { |
231 | .driver = { | 231 | .driver = { |
232 | .name = "st_ahci", | 232 | .name = "st_ahci", |
233 | .owner = THIS_MODULE, | ||
234 | .pm = &st_ahci_pm_ops, | 233 | .pm = &st_ahci_pm_ops, |
235 | .of_match_table = of_match_ptr(st_ahci_match), | 234 | .of_match_table = of_match_ptr(st_ahci_match), |
236 | }, | 235 | }, |
diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index e44d675a30ec..e2e0da539a2f 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c | |||
@@ -27,6 +27,12 @@ | |||
27 | #include <linux/regulator/consumer.h> | 27 | #include <linux/regulator/consumer.h> |
28 | #include "ahci.h" | 28 | #include "ahci.h" |
29 | 29 | ||
30 | /* Insmod parameters */ | ||
31 | static bool enable_pmp; | ||
32 | module_param(enable_pmp, bool, 0); | ||
33 | MODULE_PARM_DESC(enable_pmp, | ||
34 | "Enable support for sata port multipliers, only use if you use a pmp!"); | ||
35 | |||
30 | #define AHCI_BISTAFR 0x00a0 | 36 | #define AHCI_BISTAFR 0x00a0 |
31 | #define AHCI_BISTCR 0x00a4 | 37 | #define AHCI_BISTCR 0x00a4 |
32 | #define AHCI_BISTFCTR 0x00a8 | 38 | #define AHCI_BISTFCTR 0x00a8 |
@@ -184,7 +190,15 @@ static int ahci_sunxi_probe(struct platform_device *pdev) | |||
184 | goto disable_resources; | 190 | goto disable_resources; |
185 | 191 | ||
186 | hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI | | 192 | hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI | |
187 | AHCI_HFLAG_NO_PMP | AHCI_HFLAG_YES_NCQ; | 193 | AHCI_HFLAG_YES_NCQ; |
194 | |||
195 | /* | ||
196 | * The sunxi sata controller seems to be unable to successfully do a | ||
197 | * soft reset if no pmp is attached, so disable pmp use unless | ||
198 | * requested, otherwise directly attached disks do not work. | ||
199 | */ | ||
200 | if (!enable_pmp) | ||
201 | hpriv->flags |= AHCI_HFLAG_NO_PMP; | ||
188 | 202 | ||
189 | rc = ahci_platform_init_host(pdev, hpriv, &ahci_sunxi_port_info); | 203 | rc = ahci_platform_init_host(pdev, hpriv, &ahci_sunxi_port_info); |
190 | if (rc) | 204 | if (rc) |
@@ -238,7 +252,6 @@ static struct platform_driver ahci_sunxi_driver = { | |||
238 | .remove = ata_platform_remove_one, | 252 | .remove = ata_platform_remove_one, |
239 | .driver = { | 253 | .driver = { |
240 | .name = "ahci-sunxi", | 254 | .name = "ahci-sunxi", |
241 | .owner = THIS_MODULE, | ||
242 | .of_match_table = ahci_sunxi_of_match, | 255 | .of_match_table = ahci_sunxi_of_match, |
243 | .pm = &ahci_sunxi_pm_ops, | 256 | .pm = &ahci_sunxi_pm_ops, |
244 | }, | 257 | }, |
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 0f8538f238b6..feeb8f1e2fe8 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c | |||
@@ -544,7 +544,6 @@ static struct platform_driver xgene_ahci_driver = { | |||
544 | .remove = ata_platform_remove_one, | 544 | .remove = ata_platform_remove_one, |
545 | .driver = { | 545 | .driver = { |
546 | .name = "xgene-ahci", | 546 | .name = "xgene-ahci", |
547 | .owner = THIS_MODULE, | ||
548 | .of_match_table = xgene_ahci_of_match, | 547 | .of_match_table = xgene_ahci_of_match, |
549 | }, | 548 | }, |
550 | }; | 549 | }; |
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index c5ba15af87d3..5c84fb5c3372 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1043,8 +1043,8 @@ const char *sata_spd_string(unsigned int spd) | |||
1043 | * None. | 1043 | * None. |
1044 | * | 1044 | * |
1045 | * RETURNS: | 1045 | * RETURNS: |
1046 | * Device type, %ATA_DEV_ATA, %ATA_DEV_ATAPI, %ATA_DEV_PMP or | 1046 | * Device type, %ATA_DEV_ATA, %ATA_DEV_ATAPI, %ATA_DEV_PMP, |
1047 | * %ATA_DEV_UNKNOWN the event of failure. | 1047 | * %ATA_DEV_ZAC, or %ATA_DEV_UNKNOWN the event of failure. |
1048 | */ | 1048 | */ |
1049 | unsigned int ata_dev_classify(const struct ata_taskfile *tf) | 1049 | unsigned int ata_dev_classify(const struct ata_taskfile *tf) |
1050 | { | 1050 | { |
@@ -1089,6 +1089,11 @@ unsigned int ata_dev_classify(const struct ata_taskfile *tf) | |||
1089 | return ATA_DEV_SEMB; | 1089 | return ATA_DEV_SEMB; |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | if ((tf->lbam == 0xcd) && (tf->lbah == 0xab)) { | ||
1093 | DPRINTK("found ZAC device by sig\n"); | ||
1094 | return ATA_DEV_ZAC; | ||
1095 | } | ||
1096 | |||
1092 | DPRINTK("unknown device\n"); | 1097 | DPRINTK("unknown device\n"); |
1093 | return ATA_DEV_UNKNOWN; | 1098 | return ATA_DEV_UNKNOWN; |
1094 | } | 1099 | } |
@@ -1329,7 +1334,7 @@ static int ata_hpa_resize(struct ata_device *dev) | |||
1329 | int rc; | 1334 | int rc; |
1330 | 1335 | ||
1331 | /* do we need to do it? */ | 1336 | /* do we need to do it? */ |
1332 | if (dev->class != ATA_DEV_ATA || | 1337 | if ((dev->class != ATA_DEV_ATA && dev->class != ATA_DEV_ZAC) || |
1333 | !ata_id_has_lba(dev->id) || !ata_id_hpa_enabled(dev->id) || | 1338 | !ata_id_has_lba(dev->id) || !ata_id_hpa_enabled(dev->id) || |
1334 | (dev->horkage & ATA_HORKAGE_BROKEN_HPA)) | 1339 | (dev->horkage & ATA_HORKAGE_BROKEN_HPA)) |
1335 | return 0; | 1340 | return 0; |
@@ -1889,6 +1894,7 @@ retry: | |||
1889 | case ATA_DEV_SEMB: | 1894 | case ATA_DEV_SEMB: |
1890 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ | 1895 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ |
1891 | case ATA_DEV_ATA: | 1896 | case ATA_DEV_ATA: |
1897 | case ATA_DEV_ZAC: | ||
1892 | tf.command = ATA_CMD_ID_ATA; | 1898 | tf.command = ATA_CMD_ID_ATA; |
1893 | break; | 1899 | break; |
1894 | case ATA_DEV_ATAPI: | 1900 | case ATA_DEV_ATAPI: |
@@ -1980,7 +1986,7 @@ retry: | |||
1980 | rc = -EINVAL; | 1986 | rc = -EINVAL; |
1981 | reason = "device reports invalid type"; | 1987 | reason = "device reports invalid type"; |
1982 | 1988 | ||
1983 | if (class == ATA_DEV_ATA) { | 1989 | if (class == ATA_DEV_ATA || class == ATA_DEV_ZAC) { |
1984 | if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) | 1990 | if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) |
1985 | goto err_out; | 1991 | goto err_out; |
1986 | if (ap->host->flags & ATA_HOST_IGNORE_ATA && | 1992 | if (ap->host->flags & ATA_HOST_IGNORE_ATA && |
@@ -2015,7 +2021,8 @@ retry: | |||
2015 | goto retry; | 2021 | goto retry; |
2016 | } | 2022 | } |
2017 | 2023 | ||
2018 | if ((flags & ATA_READID_POSTRESET) && class == ATA_DEV_ATA) { | 2024 | if ((flags & ATA_READID_POSTRESET) && |
2025 | (class == ATA_DEV_ATA || class == ATA_DEV_ZAC)) { | ||
2019 | /* | 2026 | /* |
2020 | * The exact sequence expected by certain pre-ATA4 drives is: | 2027 | * The exact sequence expected by certain pre-ATA4 drives is: |
2021 | * SRST RESET | 2028 | * SRST RESET |
@@ -2280,7 +2287,7 @@ int ata_dev_configure(struct ata_device *dev) | |||
2280 | sizeof(modelbuf)); | 2287 | sizeof(modelbuf)); |
2281 | 2288 | ||
2282 | /* ATA-specific feature tests */ | 2289 | /* ATA-specific feature tests */ |
2283 | if (dev->class == ATA_DEV_ATA) { | 2290 | if (dev->class == ATA_DEV_ATA || dev->class == ATA_DEV_ZAC) { |
2284 | if (ata_id_is_cfa(id)) { | 2291 | if (ata_id_is_cfa(id)) { |
2285 | /* CPRM may make this media unusable */ | 2292 | /* CPRM may make this media unusable */ |
2286 | if (id[ATA_ID_CFA_KEY_MGMT] & 1) | 2293 | if (id[ATA_ID_CFA_KEY_MGMT] & 1) |
@@ -4033,6 +4040,7 @@ int ata_dev_revalidate(struct ata_device *dev, unsigned int new_class, | |||
4033 | if (ata_class_enabled(new_class) && | 4040 | if (ata_class_enabled(new_class) && |
4034 | new_class != ATA_DEV_ATA && | 4041 | new_class != ATA_DEV_ATA && |
4035 | new_class != ATA_DEV_ATAPI && | 4042 | new_class != ATA_DEV_ATAPI && |
4043 | new_class != ATA_DEV_ZAC && | ||
4036 | new_class != ATA_DEV_SEMB) { | 4044 | new_class != ATA_DEV_SEMB) { |
4037 | ata_dev_info(dev, "class mismatch %u != %u\n", | 4045 | ata_dev_info(dev, "class mismatch %u != %u\n", |
4038 | dev->class, new_class); | 4046 | dev->class, new_class); |
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index dad83df555c4..3dbec8954c86 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1809,6 +1809,7 @@ static unsigned int ata_eh_analyze_tf(struct ata_queued_cmd *qc, | |||
1809 | 1809 | ||
1810 | switch (qc->dev->class) { | 1810 | switch (qc->dev->class) { |
1811 | case ATA_DEV_ATA: | 1811 | case ATA_DEV_ATA: |
1812 | case ATA_DEV_ZAC: | ||
1812 | if (err & ATA_ICRC) | 1813 | if (err & ATA_ICRC) |
1813 | qc->err_mask |= AC_ERR_ATA_BUS; | 1814 | qc->err_mask |= AC_ERR_ATA_BUS; |
1814 | if (err & (ATA_UNC | ATA_AMNF)) | 1815 | if (err & (ATA_UNC | ATA_AMNF)) |
@@ -3792,7 +3793,8 @@ int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
3792 | struct ata_eh_context *ehc = &link->eh_context; | 3793 | struct ata_eh_context *ehc = &link->eh_context; |
3793 | unsigned long tmp; | 3794 | unsigned long tmp; |
3794 | 3795 | ||
3795 | if (dev->class != ATA_DEV_ATA) | 3796 | if (dev->class != ATA_DEV_ATA && |
3797 | dev->class != ATA_DEV_ZAC) | ||
3796 | continue; | 3798 | continue; |
3797 | if (!(ehc->i.dev_action[dev->devno] & | 3799 | if (!(ehc->i.dev_action[dev->devno] & |
3798 | ATA_EH_PARK)) | 3800 | ATA_EH_PARK)) |
@@ -3873,7 +3875,8 @@ int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
3873 | 3875 | ||
3874 | /* retry flush if necessary */ | 3876 | /* retry flush if necessary */ |
3875 | ata_for_each_dev(dev, link, ALL) { | 3877 | ata_for_each_dev(dev, link, ALL) { |
3876 | if (dev->class != ATA_DEV_ATA) | 3878 | if (dev->class != ATA_DEV_ATA && |
3879 | dev->class != ATA_DEV_ZAC) | ||
3877 | continue; | 3880 | continue; |
3878 | rc = ata_eh_maybe_retry_flush(dev); | 3881 | rc = ata_eh_maybe_retry_flush(dev); |
3879 | if (rc) | 3882 | if (rc) |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index dd45c6a03e5d..e364e86e84d7 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -235,7 +235,8 @@ static ssize_t ata_scsi_park_store(struct device *device, | |||
235 | rc = -ENODEV; | 235 | rc = -ENODEV; |
236 | goto unlock; | 236 | goto unlock; |
237 | } | 237 | } |
238 | if (dev->class != ATA_DEV_ATA) { | 238 | if (dev->class != ATA_DEV_ATA && |
239 | dev->class != ATA_DEV_ZAC) { | ||
239 | rc = -EOPNOTSUPP; | 240 | rc = -EOPNOTSUPP; |
240 | goto unlock; | 241 | goto unlock; |
241 | } | 242 | } |
@@ -1961,6 +1962,7 @@ static void ata_scsi_rbuf_fill(struct ata_scsi_args *args, | |||
1961 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | 1962 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) |
1962 | { | 1963 | { |
1963 | const u8 versions[] = { | 1964 | const u8 versions[] = { |
1965 | 0x00, | ||
1964 | 0x60, /* SAM-3 (no version claimed) */ | 1966 | 0x60, /* SAM-3 (no version claimed) */ |
1965 | 1967 | ||
1966 | 0x03, | 1968 | 0x03, |
@@ -1969,6 +1971,20 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
1969 | 0x02, | 1971 | 0x02, |
1970 | 0x60 /* SPC-3 (no version claimed) */ | 1972 | 0x60 /* SPC-3 (no version claimed) */ |
1971 | }; | 1973 | }; |
1974 | const u8 versions_zbc[] = { | ||
1975 | 0x00, | ||
1976 | 0xA0, /* SAM-5 (no version claimed) */ | ||
1977 | |||
1978 | 0x04, | ||
1979 | 0xC0, /* SBC-3 (no version claimed) */ | ||
1980 | |||
1981 | 0x04, | ||
1982 | 0x60, /* SPC-4 (no version claimed) */ | ||
1983 | |||
1984 | 0x60, | ||
1985 | 0x20, /* ZBC (no version claimed) */ | ||
1986 | }; | ||
1987 | |||
1972 | u8 hdr[] = { | 1988 | u8 hdr[] = { |
1973 | TYPE_DISK, | 1989 | TYPE_DISK, |
1974 | 0, | 1990 | 0, |
@@ -1983,6 +1999,11 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
1983 | if (ata_id_removeable(args->id)) | 1999 | if (ata_id_removeable(args->id)) |
1984 | hdr[1] |= (1 << 7); | 2000 | hdr[1] |= (1 << 7); |
1985 | 2001 | ||
2002 | if (args->dev->class == ATA_DEV_ZAC) { | ||
2003 | hdr[0] = TYPE_ZBC; | ||
2004 | hdr[2] = 0x6; /* ZBC is defined in SPC-4 */ | ||
2005 | } | ||
2006 | |||
1986 | memcpy(rbuf, hdr, sizeof(hdr)); | 2007 | memcpy(rbuf, hdr, sizeof(hdr)); |
1987 | memcpy(&rbuf[8], "ATA ", 8); | 2008 | memcpy(&rbuf[8], "ATA ", 8); |
1988 | ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); | 2009 | ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); |
@@ -1995,7 +2016,10 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
1995 | if (rbuf[32] == 0 || rbuf[32] == ' ') | 2016 | if (rbuf[32] == 0 || rbuf[32] == ' ') |
1996 | memcpy(&rbuf[32], "n/a ", 4); | 2017 | memcpy(&rbuf[32], "n/a ", 4); |
1997 | 2018 | ||
1998 | memcpy(rbuf + 59, versions, sizeof(versions)); | 2019 | if (args->dev->class == ATA_DEV_ZAC) |
2020 | memcpy(rbuf + 58, versions_zbc, sizeof(versions_zbc)); | ||
2021 | else | ||
2022 | memcpy(rbuf + 58, versions, sizeof(versions)); | ||
1999 | 2023 | ||
2000 | return 0; | 2024 | return 0; |
2001 | } | 2025 | } |
@@ -2564,7 +2588,6 @@ static void atapi_request_sense(struct ata_queued_cmd *qc) | |||
2564 | 2588 | ||
2565 | DPRINTK("ATAPI request sense\n"); | 2589 | DPRINTK("ATAPI request sense\n"); |
2566 | 2590 | ||
2567 | /* FIXME: is this needed? */ | ||
2568 | memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); | 2591 | memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); |
2569 | 2592 | ||
2570 | #ifdef CONFIG_ATA_SFF | 2593 | #ifdef CONFIG_ATA_SFF |
@@ -3405,7 +3428,7 @@ static inline int __ata_scsi_queuecmd(struct scsi_cmnd *scmd, | |||
3405 | ata_xlat_func_t xlat_func; | 3428 | ata_xlat_func_t xlat_func; |
3406 | int rc = 0; | 3429 | int rc = 0; |
3407 | 3430 | ||
3408 | if (dev->class == ATA_DEV_ATA) { | 3431 | if (dev->class == ATA_DEV_ATA || dev->class == ATA_DEV_ZAC) { |
3409 | if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) | 3432 | if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) |
3410 | goto bad_cdb_len; | 3433 | goto bad_cdb_len; |
3411 | 3434 | ||
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c index e37413228228..3227b7c8a05f 100644 --- a/drivers/ata/libata-transport.c +++ b/drivers/ata/libata-transport.c | |||
@@ -143,6 +143,7 @@ static struct { | |||
143 | { ATA_DEV_PMP_UNSUP, "pmp" }, | 143 | { ATA_DEV_PMP_UNSUP, "pmp" }, |
144 | { ATA_DEV_SEMB, "semb" }, | 144 | { ATA_DEV_SEMB, "semb" }, |
145 | { ATA_DEV_SEMB_UNSUP, "semb" }, | 145 | { ATA_DEV_SEMB_UNSUP, "semb" }, |
146 | { ATA_DEV_ZAC, "zac" }, | ||
146 | { ATA_DEV_NONE, "none" } | 147 | { ATA_DEV_NONE, "none" } |
147 | }; | 148 | }; |
148 | ata_bitfield_name_search(class, ata_class_names) | 149 | ata_bitfield_name_search(class, ata_class_names) |
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index 38216b991474..a9b0c820f2eb 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c | |||
@@ -961,7 +961,6 @@ static struct platform_driver arasan_cf_driver = { | |||
961 | .remove = arasan_cf_remove, | 961 | .remove = arasan_cf_remove, |
962 | .driver = { | 962 | .driver = { |
963 | .name = DRIVER_NAME, | 963 | .name = DRIVER_NAME, |
964 | .owner = THIS_MODULE, | ||
965 | .pm = &arasan_cf_pm_ops, | 964 | .pm = &arasan_cf_pm_ops, |
966 | .of_match_table = of_match_ptr(arasan_cf_id_table), | 965 | .of_match_table = of_match_ptr(arasan_cf_id_table), |
967 | }, | 966 | }, |
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index d59d5239405f..9aeb7a6dd4d4 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c | |||
@@ -389,7 +389,6 @@ static struct platform_driver pata_at32_driver = { | |||
389 | .remove = __exit_p(pata_at32_remove), | 389 | .remove = __exit_p(pata_at32_remove), |
390 | .driver = { | 390 | .driver = { |
391 | .name = "at32_ide", | 391 | .name = "at32_ide", |
392 | .owner = THIS_MODULE, | ||
393 | }, | 392 | }, |
394 | }; | 393 | }; |
395 | 394 | ||
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c index 8a66f23af4c4..9e85937d36a9 100644 --- a/drivers/ata/pata_at91.c +++ b/drivers/ata/pata_at91.c | |||
@@ -444,7 +444,6 @@ static struct platform_driver pata_at91_driver = { | |||
444 | .remove = pata_at91_remove, | 444 | .remove = pata_at91_remove, |
445 | .driver = { | 445 | .driver = { |
446 | .name = DRV_NAME, | 446 | .name = DRV_NAME, |
447 | .owner = THIS_MODULE, | ||
448 | }, | 447 | }, |
449 | }; | 448 | }; |
450 | 449 | ||
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c index 03f2f2bc83bd..dd7410019d15 100644 --- a/drivers/ata/pata_bf54x.c +++ b/drivers/ata/pata_bf54x.c | |||
@@ -1657,7 +1657,6 @@ static struct platform_driver bfin_atapi_driver = { | |||
1657 | .resume = bfin_atapi_resume, | 1657 | .resume = bfin_atapi_resume, |
1658 | .driver = { | 1658 | .driver = { |
1659 | .name = DRV_NAME, | 1659 | .name = DRV_NAME, |
1660 | .owner = THIS_MODULE, | ||
1661 | }, | 1660 | }, |
1662 | }; | 1661 | }; |
1663 | 1662 | ||
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 4d37c5415fc7..bd6b089c67a3 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c | |||
@@ -1021,7 +1021,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev) | |||
1021 | static struct platform_driver ep93xx_pata_platform_driver = { | 1021 | static struct platform_driver ep93xx_pata_platform_driver = { |
1022 | .driver = { | 1022 | .driver = { |
1023 | .name = DRV_NAME, | 1023 | .name = DRV_NAME, |
1024 | .owner = THIS_MODULE, | ||
1025 | }, | 1024 | }, |
1026 | .probe = ep93xx_pata_probe, | 1025 | .probe = ep93xx_pata_probe, |
1027 | .remove = ep93xx_pata_remove, | 1026 | .remove = ep93xx_pata_remove, |
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index 989ff5ac69ec..139d20778b29 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -240,7 +240,6 @@ static struct platform_driver pata_imx_driver = { | |||
240 | .driver = { | 240 | .driver = { |
241 | .name = DRV_NAME, | 241 | .name = DRV_NAME, |
242 | .of_match_table = imx_pata_dt_ids, | 242 | .of_match_table = imx_pata_dt_ids, |
243 | .owner = THIS_MODULE, | ||
244 | .pm = &pata_imx_pm_ops, | 243 | .pm = &pata_imx_pm_ops, |
245 | }, | 244 | }, |
246 | }; | 245 | }; |
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index ddf470c2341d..abda44183512 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c | |||
@@ -193,7 +193,6 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) | |||
193 | static struct platform_driver ixp4xx_pata_platform_driver = { | 193 | static struct platform_driver ixp4xx_pata_platform_driver = { |
194 | .driver = { | 194 | .driver = { |
195 | .name = DRV_NAME, | 195 | .name = DRV_NAME, |
196 | .owner = THIS_MODULE, | ||
197 | }, | 196 | }, |
198 | .probe = ixp4xx_pata_probe, | 197 | .probe = ixp4xx_pata_probe, |
199 | .remove = ata_platform_remove_one, | 198 | .remove = ata_platform_remove_one, |
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index ccd1c83a05cc..252ba27fa63b 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -863,7 +863,6 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = { | |||
863 | #endif | 863 | #endif |
864 | .driver = { | 864 | .driver = { |
865 | .name = DRV_NAME, | 865 | .name = DRV_NAME, |
866 | .owner = THIS_MODULE, | ||
867 | .of_match_table = mpc52xx_ata_of_match, | 866 | .of_match_table = mpc52xx_ata_of_match, |
868 | }, | 867 | }, |
869 | }; | 868 | }; |
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 2a97d3a531ec..80a80548ad0a 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c | |||
@@ -1059,7 +1059,6 @@ static struct platform_driver octeon_cf_driver = { | |||
1059 | .probe = octeon_cf_probe, | 1059 | .probe = octeon_cf_probe, |
1060 | .driver = { | 1060 | .driver = { |
1061 | .name = DRV_NAME, | 1061 | .name = DRV_NAME, |
1062 | .owner = THIS_MODULE, | ||
1063 | .of_match_table = octeon_cf_match, | 1062 | .of_match_table = octeon_cf_match, |
1064 | .shutdown = octeon_cf_shutdown | 1063 | .shutdown = octeon_cf_shutdown |
1065 | }, | 1064 | }, |
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 64965398914a..dcc408abe171 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c | |||
@@ -75,7 +75,6 @@ MODULE_DEVICE_TABLE(of, pata_of_platform_match); | |||
75 | static struct platform_driver pata_of_platform_driver = { | 75 | static struct platform_driver pata_of_platform_driver = { |
76 | .driver = { | 76 | .driver = { |
77 | .name = "pata_of_platform", | 77 | .name = "pata_of_platform", |
78 | .owner = THIS_MODULE, | ||
79 | .of_match_table = pata_of_platform_match, | 78 | .of_match_table = pata_of_platform_match, |
80 | }, | 79 | }, |
81 | .probe = pata_of_platform_probe, | 80 | .probe = pata_of_platform_probe, |
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index df2bb7504fc8..8c0d7d736b7a 100644 --- a/drivers/ata/pata_palmld.c +++ b/drivers/ata/pata_palmld.c | |||
@@ -124,7 +124,6 @@ static int palmld_pata_remove(struct platform_device *dev) | |||
124 | static struct platform_driver palmld_pata_platform_driver = { | 124 | static struct platform_driver palmld_pata_platform_driver = { |
125 | .driver = { | 125 | .driver = { |
126 | .name = DRV_NAME, | 126 | .name = DRV_NAME, |
127 | .owner = THIS_MODULE, | ||
128 | }, | 127 | }, |
129 | .probe = palmld_pata_probe, | 128 | .probe = palmld_pata_probe, |
130 | .remove = palmld_pata_remove, | 129 | .remove = palmld_pata_remove, |
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index f8cff3e247c5..1eedfe46d7c8 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
@@ -224,7 +224,6 @@ static struct platform_driver pata_platform_driver = { | |||
224 | .remove = ata_platform_remove_one, | 224 | .remove = ata_platform_remove_one, |
225 | .driver = { | 225 | .driver = { |
226 | .name = DRV_NAME, | 226 | .name = DRV_NAME, |
227 | .owner = THIS_MODULE, | ||
228 | }, | 227 | }, |
229 | }; | 228 | }; |
230 | 229 | ||
diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c index 73259bfda1e3..c36b3e6531d8 100644 --- a/drivers/ata/pata_pxa.c +++ b/drivers/ata/pata_pxa.c | |||
@@ -385,7 +385,6 @@ static struct platform_driver pxa_ata_driver = { | |||
385 | .remove = pxa_ata_remove, | 385 | .remove = pxa_ata_remove, |
386 | .driver = { | 386 | .driver = { |
387 | .name = DRV_NAME, | 387 | .name = DRV_NAME, |
388 | .owner = THIS_MODULE, | ||
389 | }, | 388 | }, |
390 | }; | 389 | }; |
391 | 390 | ||
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c index 3c5eb8fa6bd1..6d08446b877c 100644 --- a/drivers/ata/pata_rb532_cf.c +++ b/drivers/ata/pata_rb532_cf.c | |||
@@ -193,7 +193,6 @@ static struct platform_driver rb532_pata_platform_driver = { | |||
193 | .remove = rb532_pata_driver_remove, | 193 | .remove = rb532_pata_driver_remove, |
194 | .driver = { | 194 | .driver = { |
195 | .name = DRV_NAME, | 195 | .name = DRV_NAME, |
196 | .owner = THIS_MODULE, | ||
197 | }, | 196 | }, |
198 | }; | 197 | }; |
199 | 198 | ||
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c index 1a24a5dc3940..fa44eb2872db 100644 --- a/drivers/ata/pata_samsung_cf.c +++ b/drivers/ata/pata_samsung_cf.c | |||
@@ -656,7 +656,6 @@ static struct platform_driver pata_s3c_driver = { | |||
656 | .id_table = pata_s3c_driver_ids, | 656 | .id_table = pata_s3c_driver_ids, |
657 | .driver = { | 657 | .driver = { |
658 | .name = DRV_NAME, | 658 | .name = DRV_NAME, |
659 | .owner = THIS_MODULE, | ||
660 | #ifdef CONFIG_PM_SLEEP | 659 | #ifdef CONFIG_PM_SLEEP |
661 | .pm = &pata_s3c_pm_ops, | 660 | .pm = &pata_s3c_pm_ops, |
662 | #endif | 661 | #endif |
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 0bb2cabd2197..c7ddef89e7b0 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c | |||
@@ -1807,7 +1807,6 @@ MODULE_DEVICE_TABLE(of, sata_dwc_match); | |||
1807 | static struct platform_driver sata_dwc_driver = { | 1807 | static struct platform_driver sata_dwc_driver = { |
1808 | .driver = { | 1808 | .driver = { |
1809 | .name = DRV_NAME, | 1809 | .name = DRV_NAME, |
1810 | .owner = THIS_MODULE, | ||
1811 | .of_match_table = sata_dwc_match, | 1810 | .of_match_table = sata_dwc_match, |
1812 | }, | 1811 | }, |
1813 | .probe = sata_dwc_probe, | 1812 | .probe = sata_dwc_probe, |
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 65071591b143..f9054cd36a72 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1624,7 +1624,6 @@ MODULE_DEVICE_TABLE(of, fsl_sata_match); | |||
1624 | static struct platform_driver fsl_sata_driver = { | 1624 | static struct platform_driver fsl_sata_driver = { |
1625 | .driver = { | 1625 | .driver = { |
1626 | .name = "fsl-sata", | 1626 | .name = "fsl-sata", |
1627 | .owner = THIS_MODULE, | ||
1628 | .of_match_table = fsl_sata_match, | 1627 | .of_match_table = fsl_sata_match, |
1629 | }, | 1628 | }, |
1630 | .probe = sata_fsl_probe, | 1629 | .probe = sata_fsl_probe, |
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index ce2b99a1ed70..24e311fe2c1c 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c | |||
@@ -634,7 +634,6 @@ static struct platform_driver ahci_highbank_driver = { | |||
634 | .remove = ata_platform_remove_one, | 634 | .remove = ata_platform_remove_one, |
635 | .driver = { | 635 | .driver = { |
636 | .name = "highbank-ahci", | 636 | .name = "highbank-ahci", |
637 | .owner = THIS_MODULE, | ||
638 | .of_match_table = ahci_of_match, | 637 | .of_match_table = ahci_of_match, |
639 | .pm = &ahci_highbank_pm_ops, | 638 | .pm = &ahci_highbank_pm_ops, |
640 | }, | 639 | }, |
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 391cfda1e83f..f9a0e34eb111 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -4280,7 +4280,6 @@ static struct platform_driver mv_platform_driver = { | |||
4280 | .resume = mv_platform_resume, | 4280 | .resume = mv_platform_resume, |
4281 | .driver = { | 4281 | .driver = { |
4282 | .name = DRV_NAME, | 4282 | .name = DRV_NAME, |
4283 | .owner = THIS_MODULE, | ||
4284 | .of_match_table = of_match_ptr(mv_sata_dt_ids), | 4283 | .of_match_table = of_match_ptr(mv_sata_dt_ids), |
4285 | }, | 4284 | }, |
4286 | }; | 4285 | }; |
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index ea1fbc1d4c5f..cb0d2e644af5 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c | |||
@@ -1004,7 +1004,6 @@ static struct platform_driver sata_rcar_driver = { | |||
1004 | .id_table = sata_rcar_id_table, | 1004 | .id_table = sata_rcar_id_table, |
1005 | .driver = { | 1005 | .driver = { |
1006 | .name = DRV_NAME, | 1006 | .name = DRV_NAME, |
1007 | .owner = THIS_MODULE, | ||
1008 | .of_match_table = sata_rcar_match, | 1007 | .of_match_table = sata_rcar_match, |
1009 | #ifdef CONFIG_PM_SLEEP | 1008 | #ifdef CONFIG_PM_SLEEP |
1010 | .pm = &sata_rcar_pm_ops, | 1009 | .pm = &sata_rcar_pm_ops, |