Skip to contentSkip to conversation

USB: bcma: suspend() only takes one argument now

PATCH In review Dan Carpenter 2 participants 2 messages Apr 19, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: bcma: suspend() only takes one argument now

We changed the API here a couple months ago. It suspend() only takes one argument now. GCC complains about this:

drivers/usb/host/bcma-hcd.c:320:2: warning: initialization from
incompatible pointer type [enabled by default]
drivers/usb/host/bcma-hcd.c:320:2: warning: (near initialization
for ‘bcma_hcd_driver.suspend’) [enabled by default]

drivers/usb/host/bcma-hcd.c +1 -1
index afec047..0b35d42 100644
@@ -286,7 +286,7 @@ static void bcma_hcd_shutdown(struct bcma_device *dev)
 
 #ifdef CONFIG_PM
 
-static int bcma_hcd_suspend(struct bcma_device *dev, pm_message_t state)
+static int bcma_hcd_suspend(struct bcma_device *dev)
 {
 	bcma_core_disable(dev, 0);
 
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Dan Carpenter

We changed the API here a couple months ago. It suspend() only takes one argument now. GCC complains about this:

drivers/usb/host/bcma-hcd.c:320:2: warning: initialization from
incompatible pointer type [enabled by default]
drivers/usb/host/bcma-hcd.c:320:2: warning: (near initialization
for ‘bcma_hcd_driver.suspend’) [enabled by default]

Thanks for the patch.

Hauke