forked from Minki/linux
spi-topcliff-pch: rename pch_spi_pcidev to pch_spi_pcidev_driver
Rename static struct pci_driver pch_spi_pcidev to pch_spi_pcidev_driver to get rid of warnings from modpost checks. Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
b1a4874e0d
commit
c88db23325
@ -1720,7 +1720,7 @@ static int pch_spi_resume(struct pci_dev *pdev)
|
||||
|
||||
#endif
|
||||
|
||||
static struct pci_driver pch_spi_pcidev = {
|
||||
static struct pci_driver pch_spi_pcidev_driver = {
|
||||
.name = "pch_spi",
|
||||
.id_table = pch_spi_pcidev_id,
|
||||
.probe = pch_spi_probe,
|
||||
@ -1736,7 +1736,7 @@ static int __init pch_spi_init(void)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = pci_register_driver(&pch_spi_pcidev);
|
||||
ret = pci_register_driver(&pch_spi_pcidev_driver);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@ -1746,7 +1746,7 @@ module_init(pch_spi_init);
|
||||
|
||||
static void __exit pch_spi_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&pch_spi_pcidev);
|
||||
pci_unregister_driver(&pch_spi_pcidev_driver);
|
||||
platform_driver_unregister(&pch_spi_pd_driver);
|
||||
}
|
||||
module_exit(pch_spi_exit);
|
||||
|
Loading…
Reference in New Issue
Block a user