summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2023-07-31 17:34:16 +0300
committerDamien Le Moal <dlemoal@kernel.org>2023-08-02 11:45:24 +0300
commit77461a3ff72f3ad9fd0b8765548c7e2fbaf52ede (patch)
tree126c80f2892fcb99cae6e68823b4163737142b2d /drivers/ata/libata-core.c
parent8ac161ea2b3709b789c192de7da31a58aec9d7ee (diff)
downloadlinux-77461a3ff72f3ad9fd0b8765548c7e2fbaf52ede.tar.xz
ata: libata-core: inline ata_port_probe()
Just used in one place. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Reviewed-by: Jason Yan <yanaijie@huawei.com> Reviewed-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index cc59d3158e1d..c6e624d27f46 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5884,14 +5884,6 @@ void __ata_port_probe(struct ata_port *ap)
spin_unlock_irqrestore(ap->lock, flags);
}
-int ata_port_probe(struct ata_port *ap)
-{
- __ata_port_probe(ap);
- ata_port_wait_eh(ap);
- return 0;
-}
-
-
static void async_port_probe(void *data, async_cookie_t cookie)
{
struct ata_port *ap = data;
@@ -5906,7 +5898,8 @@ static void async_port_probe(void *data, async_cookie_t cookie)
if (!(ap->host->flags & ATA_HOST_PARALLEL_SCAN) && ap->port_no != 0)
async_synchronize_cookie(cookie);
- (void)ata_port_probe(ap);
+ __ata_port_probe(ap);
+ ata_port_wait_eh(ap);
/* in order to keep device order, we need to synchronize at this point */
async_synchronize_cookie(cookie);