mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
This commit is contained in:
commit
84860bf064
244 changed files with 5518 additions and 5152 deletions
|
|
@ -2358,13 +2358,10 @@ static int __devexit serial8250_remove(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int serial8250_suspend(struct device *dev, pm_message_t state, u32 level)
|
||||
static int serial8250_suspend(struct device *dev, pm_message_t state)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (level != SUSPEND_DISABLE)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < UART_NR; i++) {
|
||||
struct uart_8250_port *up = &serial8250_ports[i];
|
||||
|
||||
|
|
@ -2375,13 +2372,10 @@ static int serial8250_suspend(struct device *dev, pm_message_t state, u32 level)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int serial8250_resume(struct device *dev, u32 level)
|
||||
static int serial8250_resume(struct device *dev)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (level != RESUME_ENABLE)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < UART_NR; i++) {
|
||||
struct uart_8250_port *up = &serial8250_ports[i];
|
||||
|
||||
|
|
|
|||
|
|
@ -921,21 +921,21 @@ static struct uart_driver imx_reg = {
|
|||
.cons = IMX_CONSOLE,
|
||||
};
|
||||
|
||||
static int serial_imx_suspend(struct device *_dev, pm_message_t state, u32 level)
|
||||
static int serial_imx_suspend(struct device *_dev, pm_message_t state)
|
||||
{
|
||||
struct imx_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == SUSPEND_DISABLE)
|
||||
if (sport)
|
||||
uart_suspend_port(&imx_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int serial_imx_resume(struct device *_dev, u32 level)
|
||||
static int serial_imx_resume(struct device *_dev)
|
||||
{
|
||||
struct imx_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == RESUME_ENABLE)
|
||||
if (sport)
|
||||
uart_resume_port(&imx_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -781,22 +781,22 @@ mpc52xx_uart_remove(struct device *dev)
|
|||
|
||||
#ifdef CONFIG_PM
|
||||
static int
|
||||
mpc52xx_uart_suspend(struct device *dev, pm_message_t state, u32 level)
|
||||
mpc52xx_uart_suspend(struct device *dev, pm_message_t state)
|
||||
{
|
||||
struct uart_port *port = (struct uart_port *) dev_get_drvdata(dev);
|
||||
|
||||
if (sport && level == SUSPEND_DISABLE)
|
||||
if (sport)
|
||||
uart_suspend_port(&mpc52xx_uart_driver, port);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
mpc52xx_uart_resume(struct device *dev, u32 level)
|
||||
mpc52xx_uart_resume(struct device *dev)
|
||||
{
|
||||
struct uart_port *port = (struct uart_port *) dev_get_drvdata(dev);
|
||||
|
||||
if (port && level == RESUME_ENABLE)
|
||||
if (port)
|
||||
uart_resume_port(&mpc52xx_uart_driver, port);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -805,21 +805,21 @@ static struct uart_driver serial_pxa_reg = {
|
|||
.cons = PXA_CONSOLE,
|
||||
};
|
||||
|
||||
static int serial_pxa_suspend(struct device *_dev, pm_message_t state, u32 level)
|
||||
static int serial_pxa_suspend(struct device *_dev, pm_message_t state)
|
||||
{
|
||||
struct uart_pxa_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == SUSPEND_DISABLE)
|
||||
if (sport)
|
||||
uart_suspend_port(&serial_pxa_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int serial_pxa_resume(struct device *_dev, u32 level)
|
||||
static int serial_pxa_resume(struct device *_dev)
|
||||
{
|
||||
struct uart_pxa_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == RESUME_ENABLE)
|
||||
if (sport)
|
||||
uart_resume_port(&serial_pxa_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1134,23 +1134,22 @@ static int s3c24xx_serial_remove(struct device *_dev)
|
|||
|
||||
#ifdef CONFIG_PM
|
||||
|
||||
static int s3c24xx_serial_suspend(struct device *dev, pm_message_t state,
|
||||
u32 level)
|
||||
static int s3c24xx_serial_suspend(struct device *dev, pm_message_t state)
|
||||
{
|
||||
struct uart_port *port = s3c24xx_dev_to_port(dev);
|
||||
|
||||
if (port && level == SUSPEND_DISABLE)
|
||||
if (port)
|
||||
uart_suspend_port(&s3c24xx_uart_drv, port);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int s3c24xx_serial_resume(struct device *dev, u32 level)
|
||||
static int s3c24xx_serial_resume(struct device *dev)
|
||||
{
|
||||
struct uart_port *port = s3c24xx_dev_to_port(dev);
|
||||
struct s3c24xx_uart_port *ourport = to_ourport(port);
|
||||
|
||||
if (port && level == RESUME_ENABLE) {
|
||||
if (port) {
|
||||
clk_enable(ourport->clk);
|
||||
s3c24xx_serial_resetport(port, s3c24xx_port_to_cfg(port));
|
||||
clk_disable(ourport->clk);
|
||||
|
|
|
|||
|
|
@ -834,21 +834,21 @@ static struct uart_driver sa1100_reg = {
|
|||
.cons = SA1100_CONSOLE,
|
||||
};
|
||||
|
||||
static int sa1100_serial_suspend(struct device *_dev, pm_message_t state, u32 level)
|
||||
static int sa1100_serial_suspend(struct device *_dev, pm_message_t state)
|
||||
{
|
||||
struct sa1100_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == SUSPEND_DISABLE)
|
||||
if (sport)
|
||||
uart_suspend_port(&sa1100_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sa1100_serial_resume(struct device *_dev, u32 level)
|
||||
static int sa1100_serial_resume(struct device *_dev)
|
||||
{
|
||||
struct sa1100_port *sport = dev_get_drvdata(_dev);
|
||||
|
||||
if (sport && level == RESUME_ENABLE)
|
||||
if (sport)
|
||||
uart_resume_port(&sa1100_reg, &sport->port);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -976,14 +976,11 @@ static int siu_remove(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int siu_suspend(struct device *dev, pm_message_t state, u32 level)
|
||||
static int siu_suspend(struct device *dev, pm_message_t state)
|
||||
{
|
||||
struct uart_port *port;
|
||||
int i;
|
||||
|
||||
if (level != SUSPEND_DISABLE)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < siu_uart_driver.nr; i++) {
|
||||
port = &siu_uart_ports[i];
|
||||
if ((port->type == PORT_VR41XX_SIU ||
|
||||
|
|
@ -995,14 +992,11 @@ static int siu_suspend(struct device *dev, pm_message_t state, u32 level)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int siu_resume(struct device *dev, u32 level)
|
||||
static int siu_resume(struct device *dev)
|
||||
{
|
||||
struct uart_port *port;
|
||||
int i;
|
||||
|
||||
if (level != RESUME_ENABLE)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < siu_uart_driver.nr; i++) {
|
||||
port = &siu_uart_ports[i];
|
||||
if ((port->type == PORT_VR41XX_SIU ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue