diff options
author | Tejun Heo <htejun@gmail.com> | 2008-04-07 09:47:21 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:25 -0400 |
commit | 48515f6c006c2a9d7b624ee8ad068018c2d3fe0e (patch) | |
tree | 0ade033552ccb297ac7736a6b2d77dd249be4eb8 /drivers/ata/libata-core.c | |
parent | 127102aea2ea9ec4e9ca233e2b1a75c8d3b058c4 (diff) |
libata: separate PMP support code from core code
Most of PMP support code is already in libata-pmp.c. All that are in
libata-core.c are sata_pmp_port_ops and EXPORTs. Move them to
libata-pmp.c. Also, collect PMP related prototypes and declarations
in header files and move them right above of SFF stuff.
This change is to make PMP support optional.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index ca60af0cb051..b2d5d63fb6c9 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -86,15 +86,6 @@ const struct ata_port_operations sata_port_ops = { | |||
86 | .hardreset = sata_std_hardreset, | 86 | .hardreset = sata_std_hardreset, |
87 | }; | 87 | }; |
88 | 88 | ||
89 | const struct ata_port_operations sata_pmp_port_ops = { | ||
90 | .inherits = &sata_port_ops, | ||
91 | |||
92 | .pmp_prereset = ata_std_prereset, | ||
93 | .pmp_hardreset = sata_std_hardreset, | ||
94 | .pmp_postreset = ata_std_postreset, | ||
95 | .error_handler = sata_pmp_error_handler, | ||
96 | }; | ||
97 | |||
98 | static unsigned int ata_dev_init_params(struct ata_device *dev, | 89 | static unsigned int ata_dev_init_params(struct ata_device *dev, |
99 | u16 heads, u16 sectors); | 90 | u16 heads, u16 sectors); |
100 | static unsigned int ata_dev_set_xfermode(struct ata_device *dev); | 91 | static unsigned int ata_dev_set_xfermode(struct ata_device *dev); |
@@ -6192,7 +6183,6 @@ EXPORT_SYMBOL_GPL(sata_deb_timing_hotplug); | |||
6192 | EXPORT_SYMBOL_GPL(sata_deb_timing_long); | 6183 | EXPORT_SYMBOL_GPL(sata_deb_timing_long); |
6193 | EXPORT_SYMBOL_GPL(ata_base_port_ops); | 6184 | EXPORT_SYMBOL_GPL(ata_base_port_ops); |
6194 | EXPORT_SYMBOL_GPL(sata_port_ops); | 6185 | EXPORT_SYMBOL_GPL(sata_port_ops); |
6195 | EXPORT_SYMBOL_GPL(sata_pmp_port_ops); | ||
6196 | EXPORT_SYMBOL_GPL(ata_dummy_port_ops); | 6186 | EXPORT_SYMBOL_GPL(ata_dummy_port_ops); |
6197 | EXPORT_SYMBOL_GPL(ata_dummy_port_info); | 6187 | EXPORT_SYMBOL_GPL(ata_dummy_port_info); |
6198 | EXPORT_SYMBOL_GPL(ata_std_bios_param); | 6188 | EXPORT_SYMBOL_GPL(ata_std_bios_param); |
@@ -6272,9 +6262,6 @@ EXPORT_SYMBOL_GPL(ata_pci_device_resume); | |||
6272 | #endif /* CONFIG_PM */ | 6262 | #endif /* CONFIG_PM */ |
6273 | #endif /* CONFIG_PCI */ | 6263 | #endif /* CONFIG_PCI */ |
6274 | 6264 | ||
6275 | EXPORT_SYMBOL_GPL(sata_pmp_qc_defer_cmd_switch); | ||
6276 | EXPORT_SYMBOL_GPL(sata_pmp_error_handler); | ||
6277 | |||
6278 | EXPORT_SYMBOL_GPL(__ata_ehi_push_desc); | 6265 | EXPORT_SYMBOL_GPL(__ata_ehi_push_desc); |
6279 | EXPORT_SYMBOL_GPL(ata_ehi_push_desc); | 6266 | EXPORT_SYMBOL_GPL(ata_ehi_push_desc); |
6280 | EXPORT_SYMBOL_GPL(ata_ehi_clear_desc); | 6267 | EXPORT_SYMBOL_GPL(ata_ehi_clear_desc); |