ata: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
7ab6c54b5d
commit
65c662ab63
|
@ -103,7 +103,6 @@ static struct platform_driver ahci_da850_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ahci_da850",
|
.name = "ahci_da850",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &ahci_da850_pm_ops,
|
.pm = &ahci_da850_pm_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -679,7 +679,6 @@ static struct platform_driver imx_ahci_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ahci-imx",
|
.name = "ahci-imx",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = imx_ahci_of_match,
|
.of_match_table = imx_ahci_of_match,
|
||||||
.pm = &ahci_imx_pm_ops,
|
.pm = &ahci_imx_pm_ops,
|
||||||
},
|
},
|
||||||
|
|
|
@ -115,7 +115,6 @@ static struct platform_driver ahci_mvebu_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ahci-mvebu",
|
.name = "ahci-mvebu",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ahci_mvebu_of_match,
|
.of_match_table = ahci_mvebu_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -76,7 +76,6 @@ static struct platform_driver ahci_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ahci",
|
.name = "ahci",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ahci_of_match,
|
.of_match_table = ahci_of_match,
|
||||||
.pm = &ahci_pm_ops,
|
.pm = &ahci_pm_ops,
|
||||||
},
|
},
|
||||||
|
|
|
@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, st_ahci_match);
|
||||||
static struct platform_driver st_ahci_driver = {
|
static struct platform_driver st_ahci_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "st_ahci",
|
.name = "st_ahci",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &st_ahci_pm_ops,
|
.pm = &st_ahci_pm_ops,
|
||||||
.of_match_table = of_match_ptr(st_ahci_match),
|
.of_match_table = of_match_ptr(st_ahci_match),
|
||||||
},
|
},
|
||||||
|
|
|
@ -238,7 +238,6 @@ static struct platform_driver ahci_sunxi_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ahci-sunxi",
|
.name = "ahci-sunxi",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ahci_sunxi_of_match,
|
.of_match_table = ahci_sunxi_of_match,
|
||||||
.pm = &ahci_sunxi_pm_ops,
|
.pm = &ahci_sunxi_pm_ops,
|
||||||
},
|
},
|
||||||
|
|
|
@ -544,7 +544,6 @@ static struct platform_driver xgene_ahci_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "xgene-ahci",
|
.name = "xgene-ahci",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = xgene_ahci_of_match,
|
.of_match_table = xgene_ahci_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -961,7 +961,6 @@ static struct platform_driver arasan_cf_driver = {
|
||||||
.remove = arasan_cf_remove,
|
.remove = arasan_cf_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &arasan_cf_pm_ops,
|
.pm = &arasan_cf_pm_ops,
|
||||||
.of_match_table = of_match_ptr(arasan_cf_id_table),
|
.of_match_table = of_match_ptr(arasan_cf_id_table),
|
||||||
},
|
},
|
||||||
|
|
|
@ -389,7 +389,6 @@ static struct platform_driver pata_at32_driver = {
|
||||||
.remove = __exit_p(pata_at32_remove),
|
.remove = __exit_p(pata_at32_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "at32_ide",
|
.name = "at32_ide",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -444,7 +444,6 @@ static struct platform_driver pata_at91_driver = {
|
||||||
.remove = pata_at91_remove,
|
.remove = pata_at91_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1657,7 +1657,6 @@ static struct platform_driver bfin_atapi_driver = {
|
||||||
.resume = bfin_atapi_resume,
|
.resume = bfin_atapi_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1021,7 +1021,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev)
|
||||||
static struct platform_driver ep93xx_pata_platform_driver = {
|
static struct platform_driver ep93xx_pata_platform_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = ep93xx_pata_probe,
|
.probe = ep93xx_pata_probe,
|
||||||
.remove = ep93xx_pata_remove,
|
.remove = ep93xx_pata_remove,
|
||||||
|
|
|
@ -240,7 +240,6 @@ static struct platform_driver pata_imx_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.of_match_table = imx_pata_dt_ids,
|
.of_match_table = imx_pata_dt_ids,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.pm = &pata_imx_pm_ops,
|
.pm = &pata_imx_pm_ops,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -193,7 +193,6 @@ static int ixp4xx_pata_probe(struct platform_device *pdev)
|
||||||
static struct platform_driver ixp4xx_pata_platform_driver = {
|
static struct platform_driver ixp4xx_pata_platform_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = ixp4xx_pata_probe,
|
.probe = ixp4xx_pata_probe,
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
|
|
|
@ -863,7 +863,6 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = {
|
||||||
#endif
|
#endif
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = mpc52xx_ata_of_match,
|
.of_match_table = mpc52xx_ata_of_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1059,7 +1059,6 @@ static struct platform_driver octeon_cf_driver = {
|
||||||
.probe = octeon_cf_probe,
|
.probe = octeon_cf_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = octeon_cf_match,
|
.of_match_table = octeon_cf_match,
|
||||||
.shutdown = octeon_cf_shutdown
|
.shutdown = octeon_cf_shutdown
|
||||||
},
|
},
|
||||||
|
|
|
@ -75,7 +75,6 @@ MODULE_DEVICE_TABLE(of, pata_of_platform_match);
|
||||||
static struct platform_driver pata_of_platform_driver = {
|
static struct platform_driver pata_of_platform_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "pata_of_platform",
|
.name = "pata_of_platform",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = pata_of_platform_match,
|
.of_match_table = pata_of_platform_match,
|
||||||
},
|
},
|
||||||
.probe = pata_of_platform_probe,
|
.probe = pata_of_platform_probe,
|
||||||
|
|
|
@ -124,7 +124,6 @@ static int palmld_pata_remove(struct platform_device *dev)
|
||||||
static struct platform_driver palmld_pata_platform_driver = {
|
static struct platform_driver palmld_pata_platform_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
.probe = palmld_pata_probe,
|
.probe = palmld_pata_probe,
|
||||||
.remove = palmld_pata_remove,
|
.remove = palmld_pata_remove,
|
||||||
|
|
|
@ -224,7 +224,6 @@ static struct platform_driver pata_platform_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -385,7 +385,6 @@ static struct platform_driver pxa_ata_driver = {
|
||||||
.remove = pxa_ata_remove,
|
.remove = pxa_ata_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,6 @@ static struct platform_driver rb532_pata_platform_driver = {
|
||||||
.remove = rb532_pata_driver_remove,
|
.remove = rb532_pata_driver_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -656,7 +656,6 @@ static struct platform_driver pata_s3c_driver = {
|
||||||
.id_table = pata_s3c_driver_ids,
|
.id_table = pata_s3c_driver_ids,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
#ifdef CONFIG_PM_SLEEP
|
#ifdef CONFIG_PM_SLEEP
|
||||||
.pm = &pata_s3c_pm_ops,
|
.pm = &pata_s3c_pm_ops,
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1807,7 +1807,6 @@ MODULE_DEVICE_TABLE(of, sata_dwc_match);
|
||||||
static struct platform_driver sata_dwc_driver = {
|
static struct platform_driver sata_dwc_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = sata_dwc_match,
|
.of_match_table = sata_dwc_match,
|
||||||
},
|
},
|
||||||
.probe = sata_dwc_probe,
|
.probe = sata_dwc_probe,
|
||||||
|
|
|
@ -1624,7 +1624,6 @@ MODULE_DEVICE_TABLE(of, fsl_sata_match);
|
||||||
static struct platform_driver fsl_sata_driver = {
|
static struct platform_driver fsl_sata_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "fsl-sata",
|
.name = "fsl-sata",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = fsl_sata_match,
|
.of_match_table = fsl_sata_match,
|
||||||
},
|
},
|
||||||
.probe = sata_fsl_probe,
|
.probe = sata_fsl_probe,
|
||||||
|
|
|
@ -634,7 +634,6 @@ static struct platform_driver ahci_highbank_driver = {
|
||||||
.remove = ata_platform_remove_one,
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "highbank-ahci",
|
.name = "highbank-ahci",
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = ahci_of_match,
|
.of_match_table = ahci_of_match,
|
||||||
.pm = &ahci_highbank_pm_ops,
|
.pm = &ahci_highbank_pm_ops,
|
||||||
},
|
},
|
||||||
|
|
|
@ -4280,7 +4280,6 @@ static struct platform_driver mv_platform_driver = {
|
||||||
.resume = mv_platform_resume,
|
.resume = mv_platform_resume,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = of_match_ptr(mv_sata_dt_ids),
|
.of_match_table = of_match_ptr(mv_sata_dt_ids),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -989,7 +989,6 @@ static struct platform_driver sata_rcar_driver = {
|
||||||
.id_table = sata_rcar_id_table,
|
.id_table = sata_rcar_id_table,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = DRV_NAME,
|
.name = DRV_NAME,
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.of_match_table = sata_rcar_match,
|
.of_match_table = sata_rcar_match,
|
||||||
#ifdef CONFIG_PM_SLEEP
|
#ifdef CONFIG_PM_SLEEP
|
||||||
.pm = &sata_rcar_pm_ops,
|
.pm = &sata_rcar_pm_ops,
|
||||||
|
|
Loading…
Reference in New Issue