mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-29 08:12:36 +00:00
Fix u132-hcd.c compile error
This fixes the following compile error caused by commit
3a2d5b7001
("PM: Introduce
PM_EVENT_HIBERNATE callback state")
CC [M] drivers/usb/host/u132-hcd.o
drivers/usb/host/u132-hcd.c: In function ‘u132_suspend’:
drivers/usb/host/u132-hcd.c:3224: error: expected expression before ‘int’
drivers/usb/host/u132-hcd.c:3225: error: ‘ports’ undeclared (first use in this function)
...
Signed-off-by: Mirco Tischler <mt-ml@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
42e6de0e60
commit
038eb0ea04
1 changed files with 2 additions and 2 deletions
|
@ -3213,7 +3213,7 @@ static int u132_suspend(struct platform_device *pdev, pm_message_t state)
|
|||
dev_err(&u132->platform_dev->dev, "device is being removed\n");
|
||||
return -ESHUTDOWN;
|
||||
} else {
|
||||
int retval = 0;
|
||||
int retval = 0, ports;
|
||||
|
||||
switch (state.event) {
|
||||
case PM_EVENT_FREEZE:
|
||||
|
@ -3221,7 +3221,7 @@ static int u132_suspend(struct platform_device *pdev, pm_message_t state)
|
|||
break;
|
||||
case PM_EVENT_SUSPEND:
|
||||
case PM_EVENT_HIBERNATE:
|
||||
int ports = MAX_U132_PORTS;
|
||||
ports = MAX_U132_PORTS;
|
||||
while (ports-- > 0) {
|
||||
port_power(u132, ports, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue