All of lore.kernel.org
 help / color / mirror / Atom feed
* kill pm_access & friends from input layer
@ 2004-10-25 22:00 Pavel Machek
  2004-10-25 22:50 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2004-10-25 22:00 UTC (permalink / raw)
  To: kernel list, Andrew Morton, vojtech

Hi!

pm_access is a NOP (both in CONFIG_PM and !CONFIG_PM cases, its simply
obsolete), and ugly one, too. This removes it from input layer. Please
apply,

								Pavel


--- clean/drivers/input/input.c	2004-08-15 19:14:56.000000000 +0200
+++ linux/drivers/input/input.c	2004-10-25 23:54:57.000000000 +0200
@@ -67,9 +67,6 @@
 {
 	struct input_handle *handle;
 
-	if (dev->pm_dev)
-		pm_access(dev->pm_dev);
-
 	if (type > EV_MAX || !test_bit(type, dev->evbit))
 		return;
 
@@ -230,8 +227,6 @@
 
 int input_open_device(struct input_handle *handle)
 {
-	if (handle->dev->pm_dev)
-		pm_access(handle->dev->pm_dev);
 	handle->open++;
 	if (handle->dev->open)
 		return handle->dev->open(handle->dev);
@@ -249,8 +244,6 @@
 void input_close_device(struct input_handle *handle)
 {
 	input_release_device(handle);
-	if (handle->dev->pm_dev)
-		pm_dev_idle(handle->dev->pm_dev);
 	if (handle->dev->close)
 		handle->dev->close(handle->dev);
 	handle->open--;

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

end of thread, other threads:[~2004-10-26  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 22:00 kill pm_access & friends from input layer Pavel Machek
2004-10-25 22:50 ` Dmitry Torokhov

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.