Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364245
b: refs/heads/master
c: c47ddc2
h: refs/heads/master
i:
  364243: acf0cc2
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Mar 18, 2013
1 parent 75f3406 commit f9441cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b2588cadf9f131614cb251e34f7be1f4e1a2e08
refs/heads/master: c47ddc26db389e046c1414c78ac4a6016c7df500
20 changes: 10 additions & 10 deletions trunk/drivers/tty/serial/max3100.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,11 @@ static int max3100_remove(struct spi_device *spi)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP

static int max3100_suspend(struct spi_device *spi, pm_message_t state)
static int max3100_suspend(struct device *dev)
{
struct max3100_port *s = dev_get_drvdata(&spi->dev);
struct max3100_port *s = dev_get_drvdata(dev);

dev_dbg(&s->spi->dev, "%s\n", __func__);

Expand All @@ -874,9 +874,9 @@ static int max3100_suspend(struct spi_device *spi, pm_message_t state)
return 0;
}

static int max3100_resume(struct spi_device *spi)
static int max3100_resume(struct device *dev)
{
struct max3100_port *s = dev_get_drvdata(&spi->dev);
struct max3100_port *s = dev_get_drvdata(dev);

dev_dbg(&s->spi->dev, "%s\n", __func__);

Expand All @@ -894,21 +894,21 @@ static int max3100_resume(struct spi_device *spi)
return 0;
}

static SIMPLE_DEV_PM_OPS(max3100_pm_ops, max3100_suspend, max3100_resume);
#define MAX3100_PM_OPS (&max3100_pm_ops)

#else
#define max3100_suspend NULL
#define max3100_resume NULL
#define MAX3100_PM_OPS NULL
#endif

static struct spi_driver max3100_driver = {
.driver = {
.name = "max3100",
.owner = THIS_MODULE,
.pm = MAX3100_PM_OPS,
},

.probe = max3100_probe,
.remove = max3100_remove,
.suspend = max3100_suspend,
.resume = max3100_resume,
};

module_spi_driver(max3100_driver);
Expand Down

0 comments on commit f9441cb

Please sign in to comment.