mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: Hans de Goede <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
c093e1d36e
commit
6ef95e8776
2 changed files with 1 additions and 12 deletions
|
|
@ -384,7 +384,6 @@ static int ahci_probe(struct platform_device *pdev)
|
|||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct ahci_platform_data *pdata = dev_get_platdata(dev);
|
||||
const struct ata_port_info *pi_template;
|
||||
struct ahci_host_priv *hpriv;
|
||||
int rc;
|
||||
|
||||
|
|
@ -408,14 +407,7 @@ static int ahci_probe(struct platform_device *pdev)
|
|||
goto disable_resources;
|
||||
}
|
||||
|
||||
if (pdata && pdata->ata_port_info)
|
||||
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);
|
||||
rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, 0, 0);
|
||||
if (rc)
|
||||
goto pdata_exit;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue