Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ef95e87 authored by Hans de Goede's avatar Hans de Goede Committed by Tejun Heo
Browse files

ahci_platform: Drop unused ahci_platform_data members



These members are not used anywhere, and in the future we want
ahci_platform_data to go away entirely so there is no reason to keep these
around.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent c093e1d3
Loading
Loading
Loading
Loading
+1 −9
Original line number Original line Diff line number Diff line
@@ -384,7 +384,6 @@ static int ahci_probe(struct platform_device *pdev)
{
{
	struct device *dev = &pdev->dev;
	struct device *dev = &pdev->dev;
	struct ahci_platform_data *pdata = dev_get_platdata(dev);
	struct ahci_platform_data *pdata = dev_get_platdata(dev);
	const struct ata_port_info *pi_template;
	struct ahci_host_priv *hpriv;
	struct ahci_host_priv *hpriv;
	int rc;
	int rc;


@@ -408,14 +407,7 @@ static int ahci_probe(struct platform_device *pdev)
			goto disable_resources;
			goto disable_resources;
	}
	}


	if (pdata && pdata->ata_port_info)
	rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, 0, 0);
		pi_template = pdata->ata_port_info;
	else
		pi_template = &ahci_port_info;

	rc = ahci_platform_init_host(pdev, hpriv, pi_template,
				     pdata ? pdata->force_port_map : 0,
				     pdata ? pdata->mask_port_map  : 0);
	if (rc)
	if (rc)
		goto pdata_exit;
		goto pdata_exit;


+0 −3
Original line number Original line Diff line number Diff line
@@ -33,9 +33,6 @@ struct ahci_platform_data {
	void (*exit)(struct device *dev);
	void (*exit)(struct device *dev);
	int (*suspend)(struct device *dev);
	int (*suspend)(struct device *dev);
	int (*resume)(struct device *dev);
	int (*resume)(struct device *dev);
	const struct ata_port_info *ata_port_info;
	unsigned int force_port_map;
	unsigned int mask_port_map;
};
};


int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);