Skip to content

Commit 04d5fb7

Browse files
committed
ata: ahci: drop hpriv param from ahci_update_initial_lpm_policy()
There is no need for ahci_update_initial_lpm_policy() to take hpriv as a parameter, it can easily be derived from the ata_port. Tested-by: Damien Le Moal <[email protected]> Tested-by: Jian-Hong Pan <[email protected]> Acked-by: Jian-Hong Pan <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Niklas Cassel <[email protected]>
1 parent 45b96d6 commit 04d5fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ata/ahci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,9 +1655,9 @@ static void ahci_mark_external_port(struct ata_port *ap)
16551655
ap->pflags |= ATA_PFLAG_EXTERNAL;
16561656
}
16571657

1658-
static void ahci_update_initial_lpm_policy(struct ata_port *ap,
1659-
struct ahci_host_priv *hpriv)
1658+
static void ahci_update_initial_lpm_policy(struct ata_port *ap)
16601659
{
1660+
struct ahci_host_priv *hpriv = ap->host->private_data;
16611661
int policy = CONFIG_SATA_MOBILE_LPM_POLICY;
16621662

16631663

@@ -1949,7 +1949,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
19491949

19501950
ahci_mark_external_port(ap);
19511951

1952-
ahci_update_initial_lpm_policy(ap, hpriv);
1952+
ahci_update_initial_lpm_policy(ap);
19531953

19541954
/* disabled/not-implemented port */
19551955
if (!(hpriv->port_map & (1 << i)))

0 commit comments

Comments
 (0)