diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-01-13 08:44:19 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2009-03-19 22:29:23 -0400 |
commit | 0516c8bcd25293f438573101c439ce25a18916ad (patch) | |
tree | 00e0e113810e565c9b234f9528e84b0d061c5413 /drivers/pci/pcie | |
parent | 87d2e2ecf6026efa64b01f7f71802b20da736d35 (diff) |
PCI: PCIe portdrv: Simplily probe callback of service drivers
The second argument of the ->probe() callback in
struct pcie_port_service_driver is unnecessary and never used.
Remove it.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.c | 6 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index e390707661dd..57c41204c549 100644 --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c | |||
@@ -38,8 +38,7 @@ MODULE_AUTHOR(DRIVER_AUTHOR); | |||
38 | MODULE_DESCRIPTION(DRIVER_DESC); | 38 | MODULE_DESCRIPTION(DRIVER_DESC); |
39 | MODULE_LICENSE("GPL"); | 39 | MODULE_LICENSE("GPL"); |
40 | 40 | ||
41 | static int __devinit aer_probe (struct pcie_device *dev, | 41 | static int __devinit aer_probe (struct pcie_device *dev); |
42 | const struct pcie_port_service_id *id ); | ||
43 | static void aer_remove(struct pcie_device *dev); | 42 | static void aer_remove(struct pcie_device *dev); |
44 | static int aer_suspend(struct pcie_device *dev, pm_message_t state) | 43 | static int aer_suspend(struct pcie_device *dev, pm_message_t state) |
45 | {return 0;} | 44 | {return 0;} |
@@ -207,8 +206,7 @@ static void aer_remove(struct pcie_device *dev) | |||
207 | * | 206 | * |
208 | * Invoked when PCI Express bus loads AER service driver. | 207 | * Invoked when PCI Express bus loads AER service driver. |
209 | **/ | 208 | **/ |
210 | static int __devinit aer_probe (struct pcie_device *dev, | 209 | static int __devinit aer_probe (struct pcie_device *dev) |
211 | const struct pcie_port_service_id *id ) | ||
212 | { | 210 | { |
213 | int status; | 211 | int status; |
214 | struct aer_rpc *rpc; | 212 | struct aer_rpc *rpc; |
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 91ecbc43155f..682524b0c93a 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c | |||
@@ -402,7 +402,7 @@ static int pcie_port_probe_service(struct device *dev) | |||
402 | return -ENODEV; | 402 | return -ENODEV; |
403 | 403 | ||
404 | pciedev = to_pcie_device(dev); | 404 | pciedev = to_pcie_device(dev); |
405 | status = driver->probe(pciedev, driver->id_table); | 405 | status = driver->probe(pciedev); |
406 | if (!status) { | 406 | if (!status) { |
407 | dev_printk(KERN_DEBUG, dev, "service driver %s loaded\n", | 407 | dev_printk(KERN_DEBUG, dev, "service driver %s loaded\n", |
408 | driver->name); | 408 | driver->name); |