diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:44 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-31 05:27:44 -0400 |
commit | a9beec95352ff675f27d74c3cb97dc258d022497 (patch) | |
tree | f301e31e3a9648bd6e2f4050a44b4e89aebe0f18 /drivers | |
parent | 453b07accb47c5b54aa2f156ebffac63c543027b (diff) |
[PATCH] libata-hp-prep: make probing related functions global
Hotplug will be implemented in libata-eh.c. Make ata_dev_read_id()
and ata_dev_configure() global.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 6 | ||||
-rw-r--r-- | drivers/scsi/libata.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 04921cf2fc0b..a9f79b47b4c3 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1167,8 +1167,8 @@ unsigned int ata_pio_need_iordy(const struct ata_device *adev) | |||
1167 | * RETURNS: | 1167 | * RETURNS: |
1168 | * 0 on success, -errno otherwise. | 1168 | * 0 on success, -errno otherwise. |
1169 | */ | 1169 | */ |
1170 | static int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, | 1170 | int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, |
1171 | int post_reset, u16 *id) | 1171 | int post_reset, u16 *id) |
1172 | { | 1172 | { |
1173 | struct ata_port *ap = dev->ap; | 1173 | struct ata_port *ap = dev->ap; |
1174 | unsigned int class = *p_class; | 1174 | unsigned int class = *p_class; |
@@ -1292,7 +1292,7 @@ static void ata_dev_config_ncq(struct ata_device *dev, | |||
1292 | * RETURNS: | 1292 | * RETURNS: |
1293 | * 0 on success, -errno otherwise | 1293 | * 0 on success, -errno otherwise |
1294 | */ | 1294 | */ |
1295 | static int ata_dev_configure(struct ata_device *dev, int print_info) | 1295 | int ata_dev_configure(struct ata_device *dev, int print_info) |
1296 | { | 1296 | { |
1297 | struct ata_port *ap = dev->ap; | 1297 | struct ata_port *ap = dev->ap; |
1298 | const u16 *id = dev->id; | 1298 | const u16 *id = dev->id; |
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index 4458fd9fc1a4..2d704be355cc 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -50,6 +50,9 @@ extern void ata_port_flush_task(struct ata_port *ap); | |||
50 | extern unsigned ata_exec_internal(struct ata_device *dev, | 50 | extern unsigned ata_exec_internal(struct ata_device *dev, |
51 | struct ata_taskfile *tf, const u8 *cdb, | 51 | struct ata_taskfile *tf, const u8 *cdb, |
52 | int dma_dir, void *buf, unsigned int buflen); | 52 | int dma_dir, void *buf, unsigned int buflen); |
53 | extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, | ||
54 | int post_reset, u16 *id); | ||
55 | extern int ata_dev_configure(struct ata_device *dev, int print_info); | ||
53 | extern int sata_down_spd_limit(struct ata_port *ap); | 56 | extern int sata_down_spd_limit(struct ata_port *ap); |
54 | extern int sata_set_spd_needed(struct ata_port *ap); | 57 | extern int sata_set_spd_needed(struct ata_port *ap); |
55 | extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0); | 58 | extern int ata_down_xfermask_limit(struct ata_device *dev, int force_pio0); |