diff options
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 4db69982876e..393e0cee91a9 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c | |||
@@ -325,7 +325,7 @@ int pcie_port_device_register(struct pci_dev *dev) | |||
325 | static int suspend_iter(struct device *dev, void *data) | 325 | static int suspend_iter(struct device *dev, void *data) |
326 | { | 326 | { |
327 | struct pcie_port_service_driver *service_driver; | 327 | struct pcie_port_service_driver *service_driver; |
328 | u32 state = (u32)data; | 328 | pm_message_t state = * (pm_message_t *) data; |
329 | 329 | ||
330 | if ((dev->bus == &pcie_port_bus_type) && | 330 | if ((dev->bus == &pcie_port_bus_type) && |
331 | (dev->driver)) { | 331 | (dev->driver)) { |
@@ -336,9 +336,9 @@ static int suspend_iter(struct device *dev, void *data) | |||
336 | return 0; | 336 | return 0; |
337 | } | 337 | } |
338 | 338 | ||
339 | int pcie_port_device_suspend(struct pci_dev *dev, u32 state) | 339 | int pcie_port_device_suspend(struct pci_dev *dev, pm_message_t state) |
340 | { | 340 | { |
341 | device_for_each_child(&dev->dev, (void *)state, suspend_iter); | 341 | device_for_each_child(&dev->dev, &state, suspend_iter); |
342 | return 0; | 342 | return 0; |
343 | } | 343 | } |
344 | 344 | ||