All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: ip22-gio: Remove legacy suspend/resume support
@ 2015-01-11 16:06 Lars-Peter Clausen
  2015-01-12  8:48 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2015-01-11 16:06 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Thomas Bogendoerfer, linux-mips, Lars-Peter Clausen

There are currently no gio device drivers that implement suspend/resume
and this patch removes the bus specific legacy suspend and resume callbacks.
This will allow us to eventually remove struct bus_type legacy suspend and
resume support altogether.

gio device drivers wanting to implement suspend and resume can use dev PM
ops which will work out of the box without further modifications necessary.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 arch/mips/include/asm/gio_device.h |    2 --
 arch/mips/sgi-ip22/ip22-gio.c      |   24 ------------------------
 2 files changed, 26 deletions(-)

diff --git a/arch/mips/include/asm/gio_device.h b/arch/mips/include/asm/gio_device.h
index 4be1a57..71a986e 100644
--- a/arch/mips/include/asm/gio_device.h
+++ b/arch/mips/include/asm/gio_device.h
@@ -25,8 +25,6 @@ struct gio_driver {
 
 	int  (*probe)(struct gio_device *, const struct gio_device_id *);
 	void (*remove)(struct gio_device *);
-	int  (*suspend)(struct gio_device *, pm_message_t);
-	int  (*resume)(struct gio_device *);
 	void (*shutdown)(struct gio_device *);
 
 	struct device_driver driver;
diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c
index 8f1b86d..cdf1876 100644
--- a/arch/mips/sgi-ip22/ip22-gio.c
+++ b/arch/mips/sgi-ip22/ip22-gio.c
@@ -152,28 +152,6 @@ static int gio_device_remove(struct device *dev)
 	return 0;
 }
 
-static int gio_device_suspend(struct device *dev, pm_message_t state)
-{
-	struct gio_device *gio_dev = to_gio_device(dev);
-	struct gio_driver *drv = to_gio_driver(dev->driver);
-	int error = 0;
-
-	if (dev->driver && drv->suspend)
-		error = drv->suspend(gio_dev, state);
-	return error;
-}
-
-static int gio_device_resume(struct device *dev)
-{
-	struct gio_device *gio_dev = to_gio_device(dev);
-	struct gio_driver *drv = to_gio_driver(dev->driver);
-	int error = 0;
-
-	if (dev->driver && drv->resume)
-		error = drv->resume(gio_dev);
-	return error;
-}
-
 static void gio_device_shutdown(struct device *dev)
 {
 	struct gio_device *gio_dev = to_gio_device(dev);
@@ -400,8 +378,6 @@ static struct bus_type gio_bus_type = {
 	.match	   = gio_bus_match,
 	.probe	   = gio_device_probe,
 	.remove	   = gio_device_remove,
-	.suspend   = gio_device_suspend,
-	.resume	   = gio_device_resume,
 	.shutdown  = gio_device_shutdown,
 	.uevent	   = gio_device_uevent,
 };
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: ip22-gio: Remove legacy suspend/resume support
  2015-01-11 16:06 [PATCH] MIPS: ip22-gio: Remove legacy suspend/resume support Lars-Peter Clausen
@ 2015-01-12  8:48 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2015-01-12  8:48 UTC (permalink / raw)
  To: Lars-Peter Clausen; +Cc: Ralf Baechle, linux-mips

On Sun, Jan 11, 2015 at 05:06:56PM +0100, Lars-Peter Clausen wrote:
> There are currently no gio device drivers that implement suspend/resume
> and this patch removes the bus specific legacy suspend and resume callbacks.
> This will allow us to eventually remove struct bus_type legacy suspend and
> resume support altogether.
> 
> gio device drivers wanting to implement suspend and resume can use dev PM
> ops which will work out of the box without further modifications necessary.

I don't expect that to happen soon ;-)

> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-12  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-11 16:06 [PATCH] MIPS: ip22-gio: Remove legacy suspend/resume support Lars-Peter Clausen
2015-01-12  8:48 ` Thomas Bogendoerfer

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.