Skip to contentSkip to conversation

kill pm_access & friends from input layer

PATCH Pavel Machek 2 participants 2 messages Oct 25, 2004 – Oct 26, 2004 Input drivers

lore
Share & tools
lore
#0 lore raw

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

drivers/input/input.c +0 -7
@@ -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--;
Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
#1 lore raw
Quoted 6 lines · Pavel Machek

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,

Hi,

It is already in Vojtech's tee (Pat killed them).

Signature · 1 line
Dmitry