Commit 629959b3 authored by Russell King's avatar Russell King

[SERIAL] 64bit warning in serial/core.c

Patch from Andi Kleen.

Just avoid a warning from converting 64bit pointers to 32bit int.
For 2.5.59.
parent 063e9f83
......@@ -2024,11 +2024,11 @@ static int uart_pm(struct pm_dev *dev, pm_request_t rqst, void *data)
switch (rqst) {
case PM_SUSPEND:
case PM_RESUME:
err = uart_pm_set_state(state, (int)data, dev->state);
err = uart_pm_set_state(state, (int)(long)data, dev->state);
break;
case PM_SET_WAKEUP:
err = uart_pm_set_wakeup(state, (int)data);
err = uart_pm_set_wakeup(state, (int)(long)data);
break;
}
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment