提交 17efc5f7 编写于 作者: A Alan Cox 提交者: Jeff Garzik

[PATCH] libata: Fix interesting use of "extern" and also some bracketing

Signed-off-by: NAlan Cox <alan@redhat.com>

Last of the set, just clean up some oddments. Assuming the whole set is
now ok then the remaining differences are the setup of PIO_0 at reset
and the ->data_xfer method.
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 5444a6f4
...@@ -2160,9 +2160,9 @@ static int sata_phy_resume(struct ata_port *ap) ...@@ -2160,9 +2160,9 @@ static int sata_phy_resume(struct ata_port *ap)
* so makes reset sequence different from the original * so makes reset sequence different from the original
* ->phy_reset implementation and Jeff nervous. :-P * ->phy_reset implementation and Jeff nervous. :-P
*/ */
extern void ata_std_probeinit(struct ata_port *ap) void ata_std_probeinit(struct ata_port *ap)
{ {
if (ap->flags & ATA_FLAG_SATA && ap->ops->scr_read) { if ((ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read) {
sata_phy_resume(ap); sata_phy_resume(ap);
if (sata_dev_present(ap)) if (sata_dev_present(ap))
ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT); ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册