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:24 -0400 |
commit | 127102aea2ea9ec4e9ca233e2b1a75c8d3b058c4 (patch) | |
tree | 92fb528eac658adbc7307a009bd8a7558db2658a /drivers/ata/libata-core.c | |
parent | 350756f6dab6d37ef9ed3f18dec520e88969ddac (diff) |
libata: make SFF support optional
Now that SFF support is completely separated out from the core layer,
it can be made optional. Add CONFIG_ATA_SFF and let SFF drivers
depend on it. If CONFIG_ATA_SFF isn't set, all codes in libata-sff.c
and data structures for SFF support are disabled. This saves good
number of bytes for small systems.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 3a94c69c7fe7..ca60af0cb051 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -5195,7 +5195,9 @@ struct ata_port *ata_port_alloc(struct ata_host *host) | |||
5195 | ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR | ATA_MSG_WARN; | 5195 | ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR | ATA_MSG_WARN; |
5196 | #endif | 5196 | #endif |
5197 | 5197 | ||
5198 | #ifdef CONFIG_ATA_SFF | ||
5198 | INIT_DELAYED_WORK(&ap->port_task, ata_pio_task); | 5199 | INIT_DELAYED_WORK(&ap->port_task, ata_pio_task); |
5200 | #endif | ||
5199 | INIT_DELAYED_WORK(&ap->hotplug_task, ata_scsi_hotplug); | 5201 | INIT_DELAYED_WORK(&ap->hotplug_task, ata_scsi_hotplug); |
5200 | INIT_WORK(&ap->scsi_rescan_task, ata_scsi_dev_rescan); | 5202 | INIT_WORK(&ap->scsi_rescan_task, ata_scsi_dev_rescan); |
5201 | INIT_LIST_HEAD(&ap->eh_done_q); | 5203 | INIT_LIST_HEAD(&ap->eh_done_q); |