* [PATCH] serial: max310x: Fix dev_pm_ops
@ 2013-07-29 15:27 Alexander Shiyan
2013-07-29 19:34 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2013-07-29 15:27 UTC (permalink / raw)
To: linux-serial; +Cc: Greg Kroah-Hartman, Jiri Slaby, Alexander Shiyan
This patch fixes wrong dev_pm_ops which caused by commit:
serial: max310x: Driver rework.
CC drivers/tty/serial/max310x.o
LD drivers/video/fb.o
CC drivers/w1/slaves/w1_ds2433.o
CC drivers/w1/slaves/w1_ds2760.o
CC drivers/xen/balloon.o
CC drivers/video/backlight/adp8870_bl.o
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.suspend') [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.resume') [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.freeze') [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.thaw') [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.poweroff') [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.restore') [enabled by default]
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
drivers/tty/serial/max310x.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 4ab5b27..b2e707a 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -991,10 +991,9 @@ static const struct uart_ops max310x_ops = {
.verify_port = max310x_verify_port,
};
-static int __maybe_unused max310x_suspend(struct spi_device *spi,
- pm_message_t state)
+static int __maybe_unused max310x_suspend(struct device *dev)
{
- struct max310x_port *s = dev_get_drvdata(&spi->dev);
+ struct max310x_port *s = dev_get_drvdata(dev);
int i;
for (i = 0; i < s->uart.nr; i++) {
@@ -1005,9 +1004,9 @@ static int __maybe_unused max310x_suspend(struct spi_device *spi,
return 0;
}
-static int __maybe_unused max310x_resume(struct spi_device *spi)
+static int __maybe_unused max310x_resume(struct device *dev)
{
- struct max310x_port *s = dev_get_drvdata(&spi->dev);
+ struct max310x_port *s = dev_get_drvdata(dev);
int i;
for (i = 0; i < s->uart.nr; i++) {
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: max310x: Fix dev_pm_ops
2013-07-29 15:27 [PATCH] serial: max310x: Fix dev_pm_ops Alexander Shiyan
@ 2013-07-29 19:34 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2013-07-29 19:34 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: linux-serial, Jiri Slaby
On Mon, Jul 29, 2013 at 07:27:32PM +0400, Alexander Shiyan wrote:
> This patch fixes wrong dev_pm_ops which caused by commit:
> serial: max310x: Driver rework.
>
> CC drivers/tty/serial/max310x.o
> LD drivers/video/fb.o
> CC drivers/w1/slaves/w1_ds2433.o
> CC drivers/w1/slaves/w1_ds2760.o
> CC drivers/xen/balloon.o
> CC drivers/video/backlight/adp8870_bl.o
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.suspend') [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.resume') [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.freeze') [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.thaw') [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.poweroff') [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: initialization from incompatible pointer type [enabled by default]
> drivers/tty/serial/max310x.c:1292:8: warning: (near initialization for 'max310x_pm_ops.restore') [enabled by default]
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
You forgot to put in the "Reported-by:" line saying who told you about
this problem...
I'll go do it this time, but in the future, please be more careful.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-29 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29 15:27 [PATCH] serial: max310x: Fix dev_pm_ops Alexander Shiyan
2013-07-29 19:34 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.