diff options
author | Hannes Reinecke <hare@suse.de> | 2021-12-21 08:21:07 +0100 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-01-05 11:33:02 +0100 |
commit | 1c95a27c1e544f723f6e0e5a4384098f92996ec0 (patch) | |
tree | bedeb5117b70053751911b144af7100215cc0962 /drivers/ata/libata-eh.c | |
parent | ata: libata: drop ata_msg_info() (diff) | |
download | linux-1c95a27c1e544f723f6e0e5a4384098f92996ec0.tar.xz linux-1c95a27c1e544f723f6e0e5a4384098f92996ec0.zip |
ata: libata: drop ata_msg_drv()
Callers are already protected by ata_dev_print_info(), so no need
to have an additional configuration parameter here.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 8bf52a6239aa..7951fd946bf9 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -1214,8 +1214,7 @@ void ata_dev_disable(struct ata_device *dev) if (!ata_dev_enabled(dev)) return; - if (ata_msg_drv(dev->link->ap)) - ata_dev_warn(dev, "disabled\n"); + ata_dev_warn(dev, "disable device\n"); ata_acpi_on_disable(dev); ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | ATA_DNXFER_QUIET); dev->class++; |